Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1032047 // mapPairForKey

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (107L/1K).

static <A, B> Pair<A, B> mapPairForKey(Map<A, B> map, A key) {
  B value = mapGet(map, key);
  ret value == null ?: pair(key, value);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032047
Snippet name: mapPairForKey
Eternal ID of this version: #1032047/2
Text MD5: 5424d896ef910114f8a5f5eb6f9badbb
Transpilation MD5: 996d0f20f13c024ff00d419949bae081
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-11 06:21:34
Source code size: 138 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 77 / 112
Version history: 1 change(s)
Referenced in: [show references]