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

15
LINES

< > BotCompany Repo | #1004438 // firstValue - first value of map

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

Libraryless. Click here for Pure Java version (3851L/22K).

static <A, B> B firstValue(Map<A, B> map) {
  ret first(values(map));
}

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

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

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004438
Snippet name: firstValue - first value of map
Eternal ID of this version: #1004438/4
Text MD5: 0daa6f19eb1891182b36c1729ddf689c
Transpilation MD5: 0df2b40818101439ccb96bc0ab901f5f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-14 18:18:09
Source code size: 353 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 605 / 654
Version history: 3 change(s)
Referenced in: [show references]