static <A> LinkedHashMap<A> twoListsToOrderedMap(L<A> l1, L<A> l2) { if (l(l1) != l(l2)) fail("Differing list size: " + l(l1) + "/" + l(l2)); new LinkedHashMap<A> map; int n = l(l1); for i to n: map.put(l1.get(i), l2.get(i)); ret map; }
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: | 427 / 485 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |