Transpiled version (4149L) is out of date.
1 | static LS mapToLines(Map map) { |
2 | new L<S> l; |
3 | for (O key : keys(map)) |
4 | l.add(str(key) + " = " + str(map.get(key))); |
5 | ret l; |
6 | } |
7 | |
8 | sS mapToLines(Map map, O f) { |
9 | ret lines(map(map, f)); |
10 | } |
11 | |
12 | sS mapToLines(O f, Map map) { |
13 | ret lines(map(map, f)); |
14 | } |
15 | |
16 | sS mapToLines(O f, Iterable l) { |
17 | ret lines(map(f, l)); |
18 | } |
19 | |
20 | static <A> S mapToLines(Iterable<A> l, IF1<A, S> f) { |
21 | ret mapToLines((O) f, l); |
22 | } |
23 | |
24 | static <A> S lambdaMapLike mapToLines(IF1<A, S> f, Iterable<A> l) { |
25 | ret mapToLines((O) f, l); |
26 | } |
27 | |
28 | static <A, B> S mapToLines(Map<A, B> map, IF2<A, B, S> f) { |
29 | ret lines(map(map, f)); |
30 | } |
31 | |
32 | static <A> S mapToLines(IF1<A, S> f, A data1, A... moreData) { |
33 | ret lines(map(f, data1, moreData)); |
34 | } |
download show line numbers debug dex old transpilations
Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1008543 |
Snippet name: | mapToLines - different meanings |
Eternal ID of this version: | #1008543/13 |
Text MD5: | d1c219e1ccf5c849e3d4175c2ee6c8e6 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-09-23 00:45:07 |
Source code size: | 719 bytes / 34 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 797 / 1037 |
Version history: | 12 change(s) |
Referenced in: | [show references] |