static <A, B> LinkedHashMap<A, B> listToMapWithKeys(L<B> l, A... keys) { new LinkedHashMap<A, B> map; int n = min(l(l), l(keys)); for i to n: map.put(keys[i], l.get(i)); ret map; }
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: | #1014587 |
Snippet name: | listToMapWithKeys |
Eternal ID of this version: | #1014587/1 |
Text MD5: | fecdafaf26c25078eb0142a0baa39a19 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-04-24 13:22:54 |
Source code size: | 198 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 414 / 427 |
Referenced in: | [show references] |