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]

Libraryless. Click here for Pure Java version (2496L/16K).

static <A, B> A firstKey(Map<A, B> map) {
  ret first(keys(map));
}

ifclass MultiSetMap
static <A, B> A firstKey(MultiSetMap<A, B> map) {
  ret map == null ? null : firstKey(map.data);
}
endif

download  show line numbers  debug dex   

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

No comments. add comment

Snippet ID: #1004263
Snippet name: firstKey - first key of map (e.g. litorderedmap)
Eternal ID of this version: #1004263/3
Text MD5: 33a4f89a15ece9c0f1a8dc83bce3a28b
Transpilation MD5: 40948804681f7dc0fa6ec18852bc8dd2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-05-26 12:23:39
Source code size: 201 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 395 / 431
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1004263 & http://1004263.tinybrain.de