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: | 148 / 202 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |