// does not store null values static <B, A> MultiMap<B, A> lambdaMapLike treeMultiMapIndex(IF1<A, B> f, Iterable<A> l) { new TreeMultiMap<B, A> map; fOr (A a : l) { B val = f.get(a); if (val != null) map.put(val, a); } ret map; } static <B, A> MultiMap lambdaMapLike treeMultiMapIndex(Iterable<A> l, IF1<A, B> f) { ret treeMultiMapIndex(f, l); }
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: | 65 / 72 |
Referenced in: | [show references] |