Transpiled version (2559L) is out of date.
1 | static <A, B> TreeMap<S, B> lambdaMapLike mapToCIMap(IF1<A, Pair<S, B>> f, Iterable<A> l) { |
2 | TreeMap<S, B> map = ciMap(); |
3 | fOr (A o : l) { |
4 | Pair<S, B> p = f.get(o); |
5 | map.put(p.a, p.b); |
6 | } |
7 | ret map; |
8 | } |
9 | |
10 | static <A, B> TreeMap<S, B> mapToCIMap(Iterable<A> l, IF1<A, Pair<S, B>> f) { |
11 | ret mapToCIMap(f, l); |
12 | } |
Began life as a copy of #1024294
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1029675 |
Snippet name: | mapToCIMap - map a list to a ciMap using a function returning a pair |
Eternal ID of this version: | #1029675/2 |
Text MD5: | b2b6fe3ef31391876e2f93cf212673d1 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-09-07 12:13:54 |
Source code size: | 327 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 134 / 215 |
Version history: | 1 change(s) |
Referenced in: | [show references] |