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

5
LINES

< > BotCompany Repo | #1017526 // mergeWithReverseMap

JavaX fragment (include)

static <A> Map<A> mergeWithReverseMap(Map<A> map) {
  Map map2 = cloneMap(map);
  for (A key, value : map) { map2.put(value, key); }
  ret map2;
}

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: #1017526
Snippet name: mergeWithReverseMap
Eternal ID of this version: #1017526/1
Text MD5: 5b6d3943d9b7f059351722c871fb337a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-25 16:54:42
Source code size: 150 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 474 / 453
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)