Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1032786 // mapToMultiMapValues

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4215L/24K).

static <A, B, C extends Cl<B>> MultiMap<A, B> mapToMultiMapValues(Iterable<A> l, IF1<A, C> f) {
  new MultiMap<A, B> mm;
  fOr (a : l)
    mm.putAll(a, f.get(a));
  ret mm;
}

Author comment

Began life as a copy of #1021879

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032786
Snippet name: mapToMultiMapValues
Eternal ID of this version: #1032786/5
Text MD5: 2580d3a0f0f9a74e6073722e604de6f4
Transpilation MD5: a5b16c69f01e0a1cad39b90de74e08b6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-06 04:42:26
Source code size: 179 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 161 / 211
Version history: 4 change(s)
Referenced in: [show references]