1 | static <A, B> LinkedHashMap<A, B> listToMapWithKeys(L<B> l, A... keys) { |
2 | new LinkedHashMap<A, B> map; |
3 | int n = min(l(l), l(keys)); |
4 | for i to n: |
5 | map.put(keys[i], l.get(i)); |
6 | ret map; |
7 | } |
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: | 415 / 429 |
Referenced in: | [show references] |