1 | static <A> LinkedHashMap<A> twoListsToOrderedMap(L<A> l1, L<A> l2) {
|
2 | if (l(l1) != l(l2)) fail("Differing list size: " + l(l1) + "/" + l(l2));
|
3 | new LinkedHashMap<A> map; |
4 | int n = l(l1); |
5 | for i to n: |
6 | map.put(l1.get(i), l2.get(i)); |
7 | ret map; |
8 | } |
Began life as a copy of #1010324
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: | #1010330 |
| Snippet name: | twoListsToOrderedMap |
| Eternal ID of this version: | #1010330/1 |
| Text MD5: | e2b550cdef1f2691d124f71fd20bf33d |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-09-11 21:56:00 |
| Source code size: | 257 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 666 / 728 |
| Referenced in: | [show references] |