Libraryless. Click here for Pure Java version (3126L/18K).
static <A, B> MultiMap<B, A> pairBsToMultiMapKeys(Iterable<Pair<A, B>> l) { new MultiMap<B, A> mm; fOr (var p : l) if (p != null) mm.put(p.b, p.a); ret mm; }
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: | 137 / 197 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |