static <A, B> L<Pair<A, B>> zipTwoListsToPairs_ifSameLength(L<A> l1, L<B> l2) { int n = l(l1); if (n != l(l2)) null; new L<Pair<A, B>> out; for i to n: addPair(out, l1.get(i), l2.get(i)); ret out; }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017193 |
Snippet name: | zipTwoListsToPairs_ifSameLength |
Eternal ID of this version: | #1017193/2 |
Text MD5: | 32580d9361e4782127315a03c3acf594 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-13 19:02:51 |
Source code size: | 214 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 379 / 403 |
Version history: | 1 change(s) |
Referenced in: | [show references] |