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

6
LINES

< > BotCompany Repo | #1014187 // keysToLinkedHashMap

JavaX fragment (include)

1  
static <A, B> Map<A, B> keysToLinkedHashMap(Map<A, B> map, Collection<A> l) {
2  
  Map<A, B> out = linkedHashMap();
3  
  for (A a : unnull(l))
4  
    out.put(a, map.get(a));
5  
  ret out;
6  
}

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: #1014187
Snippet name: keysToLinkedHashMap
Eternal ID of this version: #1014187/1
Text MD5: 789b0346978235f5027716ce2bce08d0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-15 15:40:34
Source code size: 182 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 412 / 427
Referenced in: [show references]