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

7
LINES

< > BotCompany Repo | #1011257 // allMultiMapValues

JavaX fragment (include)

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

static <A, B> L<B> allMultiMapValues(Map<A, L<B>> mm) {
  ret concatLists(values(mm));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1011257
Snippet name: allMultiMapValues
Eternal ID of this version: #1011257/2
Text MD5: 5bc08294a42282ace545a8700f6f3bcf
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-21 17:50:07
Source code size: 218 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 474 / 461
Version history: 1 change(s)
Referenced in: [show references]