Libraryless. Click here for Pure Java version (2541L/16K).
static <A, B> LPair<A, B> zipTwoListsToPairs_longer(L<A> l1, L<B> l2) { int n = max(l(l1), l(l2)); LPair<A, B> out = emptyList(n); for i to n: addPair(out, _get(l1, i), _get(l2, i)); ret out; }
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: | 212 / 289 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |