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

9
LINES

< > BotCompany Repo | #1004212 // valuesList - values of map as list

JavaX fragment (include)

static <A, B> L<B> valuesList(Map<A, B> map) {
  ret cloneListSynchronizingOn(values(map), map);
}

ifclass MultiMap
static <A, B> L<B> valuesList(MultiMap<A, B> mm) {
  ret mm == null ? emptyList() : concatLists(values(mm.data));
}
endif

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004212
Snippet name: valuesList - values of map as list
Eternal ID of this version: #1004212/3
Text MD5: e8ebd911f3459a08cefe621c5c9a10ff
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-03 18:04:38
Source code size: 246 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 561 / 604
Version history: 2 change(s)
Referenced in: [show references]