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

9
LINES

< > BotCompany Repo | #1004263 // firstKey - first key of map (e.g. litorderedmap)

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

Transpiled version (2496L) is out of date.

1  
static <A, B> A firstKey(Map<A, B> map) {
2  
  ret first(keys(map));
3  
}
4  
5  
ifclass IMultiMap
6  
static <A, B> A firstKey(IMultiMap<A, B> map) {
7  
  ret map == null ?: first(map.keySet());
8  
}
9  
endif

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1004263
Snippet name: firstKey - first key of map (e.g. litorderedmap)
Eternal ID of this version: #1004263/6
Text MD5: 649ef0ff9d342113dbf51b9e64e5c563
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-11 07:06:12
Source code size: 192 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 631 / 751
Version history: 5 change(s)
Referenced in: [show references]