Libraryless. Click here for Pure Java version (3126L/18K).
1 | static <A, B> MultiMap<B, A> pairBsToMultiMapKeys(Iterable<Pair<A, B>> l) { |
2 | new MultiMap<B, A> mm; |
3 | fOr (var p : l) |
4 | if (p != null) |
5 | mm.put(p.b, p.a); |
6 | ret mm; |
7 | } |
Began life as a copy of #1028618
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031408 |
Snippet name: | pairBsToMultiMapKeys |
Eternal ID of this version: | #1031408/2 |
Text MD5: | 20ff8bc7faf1b0daee20e99ea49f0e70 |
Transpilation MD5: | 497847ee049ba1c4234db9d7df758041 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-11 17:48:41 |
Source code size: | 179 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 142 / 204 |
Version history: | 1 change(s) |
Referenced in: | [show references] |