Libraryless. Click here for Pure Java version (2463L/16K).
1 | static Map mapToValues_linkedHashMap(Iterable l, O f) { |
2 | ret mapToValues_linkedHashMap(f, l); |
3 | } |
4 | |
5 | static Map mapLike mapToValues_linkedHashMap(O f, Iterable l) { |
6 | new LinkedHashMap map; |
7 | if (l != null) for (O o : l) |
8 | map.put(o, callF(f, o)); |
9 | ret map; |
10 | } |
11 | |
12 | static <A, B> Map<A, B> mapToValues_linkedHashMap(Iterable<A> l, IF1<A, B> f) { |
13 | ret mapToValues_linkedHashMap(f, l); |
14 | } |
Began life as a copy of #1024573
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028708 |
Snippet name: | mapToValues_linkedHashMap |
Eternal ID of this version: | #1028708/1 |
Text MD5: | f51f45bd06d99f78ea7f91e8a89dc98b |
Transpilation MD5: | 452cf884d8f4af702ea1c915e41b485a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-05 23:05:50 |
Source code size: | 394 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 166 / 238 |
Referenced in: | [show references] |