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

7
LINES

< > BotCompany Repo | #1016465 // toPairsCIMultiMap

JavaX fragment (include)

static MultiMap<S, Pair<S>> toPairsCIMultiMap(MultiMap<S> mm) {
  MultiMap<S, Pair<S>> mm2 = ciMultiMap();
  for (S key : keys(mm))
    for (S value : mm.get(key))
      mm2.put(key, pair(key, value));
  ret mm2;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1016465
Snippet name: toPairsCIMultiMap
Eternal ID of this version: #1016465/3
Text MD5: 8422199683e6b2c0dce319fe96a2b62f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-19 15:11:58
Source code size: 220 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 307 / 359
Version history: 2 change(s)
Referenced in: [show references]