1 | // does not store null values |
2 | static <B, A> MultiMap<B, A> lambdaMapLike treeMultiMapIndex(IF1<A, B> f, Iterable<A> l) { |
3 | new TreeMultiMap<B, A> map; |
4 | fOr (A a : l) { |
5 | B val = f.get(a); |
6 | if (val != null) |
7 | map.put(val, a); |
8 | } |
9 | ret map; |
10 | } |
11 | |
12 | |
13 | static <B, A> MultiMap lambdaMapLike treeMultiMapIndex(Iterable<A> l, IF1<A, B> f) { |
14 | ret treeMultiMapIndex(f, l); |
15 | } |
Began life as a copy of #1027804
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1038770 |
Snippet name: | treeMultiMapIndex |
Eternal ID of this version: | #1038770/1 |
Text MD5: | 00b48edc347bb3ee9cf45104c8e5e0a3 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2024-10-19 15:29:25 |
Source code size: | 385 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 18 / 23 |
Referenced in: | [show references] |