Transpiled version (7991L) is out of date.
1 | // this is pretty bad, who needs this? |
2 | static S[] mapToStringArray(Map map) { |
3 | new L l; |
4 | for (O o : keys(map)) { |
5 | l.add(o); |
6 | l.add(map.get(o)); |
7 | } |
8 | ret toStringArray(l); |
9 | } |
10 | |
11 | // this is the good one |
12 | static <A> S[] lambdaMapLike mapToStringArray(IF1<A, S> f, Iterable<A> l) { |
13 | ret toStringArray(map(f, l)); |
14 | } |
15 | |
16 | static <A> S[] mapToStringArray(Iterable<A> l, IF1<A, S> f) { |
17 | ret mapToStringArray(f, l); |
18 | } |
Began life as a copy of #1006543
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: | #1010421 |
Snippet name: | mapToStringArray |
Eternal ID of this version: | #1010421/4 |
Text MD5: | 83f70b73189c952f442bac48bbd45223 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-10-13 20:44:26 |
Source code size: | 428 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 512 / 577 |
Version history: | 3 change(s) |
Referenced in: | [show references] |