Libraryless. Click here for Pure Java version (2793L/17K).
1 | static <B, A> MultiMap<B, A> lambdaMapLike indexByCalculatedField_treeMultiMap(IF1<A, B> f, Iterable<A> l) { |
2 | MultiMap<B, A> map = treeMultiMap(); |
3 | fOr (A a : l) { |
4 | B val = f.get(a); |
5 | if (val != null) |
6 | map.put(val, a); |
7 | } |
8 | ret map; |
9 | } |
Began life as a copy of #1022494
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1022496 |
Snippet name: | indexByCalculatedField_treeMultiMap |
Eternal ID of this version: | #1022496/3 |
Text MD5: | 5ee3540b65ba1c04c92fd488e2c909f7 |
Transpilation MD5: | 08ab904fd5200b65d0abac492ddd5956 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-06 15:50:41 |
Source code size: | 256 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 236 / 320 |
Version history: | 2 change(s) |
Referenced in: | [show references] |