Libraryless. Click here for Pure Java version (44L/1K).
static <A, B> Set<A> keys(Map<A, B> map) { ret map == null ? new HashSet : map.keySet(); } // convenience shortcut for keys_gen static Set keys(O map) { ret keys((Map) map); } ifclass MultiSet static <A> Set<A> keys(MultiSet<A> ms) { ret ms == null ?: ms.keySet(); } endif ifclass IMultiMap static <A, B> Set<A> keys(IMultiMap<A, B> mm) { ret mm == null ?: mm.keySet(); } endif ifclass SmallestListMultiMap static <A, B> Set<A> keys(SmallestListMultiMap<A, B> mm) { ret mm == null ?: mm.keySet(); } endif
download show line numbers debug dex old transpilations
Travelled to 20 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, dpqxeycirhfy, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv, yanjaxplzisb
No comments. add comment
Snippet ID: | #1002042 |
Snippet name: | keys function |
Eternal ID of this version: | #1002042/9 |
Text MD5: | a887d51e0db3d8f0370489a1447bbc42 |
Transpilation MD5: | ea3b069d9eb25bd5a8cb2e5b2fdbfd49 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2024-01-04 18:44:49 |
Source code size: | 561 bytes / 26 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 851 / 3207 |
Version history: | 8 change(s) |
Referenced in: | [show references] |