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

6
LINES

< > BotCompany Repo | #1022630 // pseudoToRealMultiMap

JavaX fragment (include)

static <A, B, C extends Collection<B>> MultiMap<A, B> pseudoToRealMultiMap(Map<A, C> map) {
  new MultiMap mm;
  for (A key : keys(map))
    mm.putAll(key, map.get(key));
  ret mm;
}

Author comment

Began life as a copy of #1004754

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022630
Snippet name: pseudoToRealMultiMap
Eternal ID of this version: #1022630/1
Text MD5: ea90b942e431e65a2627f1c8282bf867
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-25 13:29:33
Source code size: 187 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 282 / 328
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)