Libraryless. Click here for Pure Java version (2541L/16K).
1 | static <A, B> LPair<A, B> zipTwoListsToPairs_longer(L<A> l1, L<B> l2) { |
2 | int n = max(l(l1), l(l2)); |
3 | LPair<A, B> out = emptyList(n); |
4 | for i to n: addPair(out, _get(l1, i), _get(l2, i)); |
5 | ret out; |
6 | } |
Began life as a copy of #1030015
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030456 |
Snippet name: | zipTwoListsToPairs_longer |
Eternal ID of this version: | #1030456/1 |
Text MD5: | 51792a3ba2c4424dc224218d2ca31eb7 |
Transpilation MD5: | d54f5668fa593fe34127f269dee81f9e |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-12-18 19:24:47 |
Source code size: | 206 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 211 / 289 |
Referenced in: | [show references] |