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

6
LINES

< > BotCompany Repo | #1014255 // twoElementListsToMap - uses LinkedHashMap

JavaX fragment (include)

static <A> LinkedHashMap<A> twoElementListsToMap(LL<A> l) {
  new LinkedHashMap<A> map;
  if (l != null) for (L<A> x : l)
    map.put(first(x), second(x));
  ret map;
}

Author comment

Began life as a copy of #1011045

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: #1014255
Snippet name: twoElementListsToMap - uses LinkedHashMap
Eternal ID of this version: #1014255/1
Text MD5: ba1f27950d0b6dd845b25e535fae9930
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-17 17:14:23
Source code size: 173 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 330 / 366
Referenced in: [show references]