Transpiled version (2201L) is out of date.
1 | static <A, B> L<B> mapWithIndex(L<A> l, IF2<Int, A, B> f) { |
2 | L<B> out = emptyList(l); |
3 | for i over l: |
4 | out.add(f.get(i, l.get(i))); |
5 | ret out; |
6 | } |
7 | |
8 | static <A, B> L<B> mapWithIndex(IF2<Int, A, B> f, L<A> l) { |
9 | ret mapWithIndex(l, f); |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027129 |
Snippet name: | mapWithIndex |
Eternal ID of this version: | #1027129/5 |
Text MD5: | ccb2ed50b692c91bceed674ec2f38b08 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-04-15 01:09:34 |
Source code size: | 242 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 274 / 384 |
Version history: | 4 change(s) |
Referenced in: | [show references] |