Libraryless. Click here for Pure Java version (3851L/22K).
1 | static <A, B> B firstValue(Map<A, B> map) {
|
2 | ret first(values(map)); |
3 | } |
4 | |
5 | ifclass MultiSetMap |
6 | static <A, B> B firstValue(MultiSetMap<A, B> map) {
|
7 | ret map == null ? null : first(firstValue(map.data)); |
8 | } |
9 | endif |
10 | |
11 | ifclass MultiMap |
12 | static <A, B> B firstValue(MultiMap<A, B> map) {
|
13 | ret map == null ? null : first(firstValue(map.data)); |
14 | } |
15 | 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: | 1268 / 1461 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |