Libraryless. Click here for Pure Java version (100L/1K).
static <A, B extends Collection<S>> Map<S, A> reversePseudoMultiMapAsCIMap(Map<A, B> mm) { Map<S, A> map = ciMap(); for (A a : keys(mm)) for (S b : mm.get(a)) map.put(b, a); ret map; }
Began life as a copy of #1005171
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1023300 |
Snippet name: | reversePseudoMultiMapAsCIMap |
Eternal ID of this version: | #1023300/3 |
Text MD5: | 1dcdc8259544023b1fdd16ab34e53231 |
Transpilation MD5: | d8b714b2e98354b47470c69c8d7a0394 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-05-24 18:45:54 |
Source code size: | 206 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 268 / 363 |
Version history: | 2 change(s) |
Referenced in: | [show references] |