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

4
LINES

< > BotCompany Repo | #1034235 // multiMapPairIterator_transformValueList

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

Libraryless. Click here for Pure Java version (5282L/29K).

static <A, B> ItIt<Pair<A, B>> multiMapPairIterator_transformValueList(MultiMap<A, B> mm, IF1<L<B>> f) {
  ret nestedIterator(iterator(keys(mm.data)), key ->
    (ItIt<Pair<A,B>>) mapI(iterator(f.get(mm.data.get(key))), val -> pair(key, val)));
}

Author comment

Began life as a copy of #1032523

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034235
Snippet name: multiMapPairIterator_transformValueList
Eternal ID of this version: #1034235/1
Text MD5: b7d0630b38e6f6b8df08531e2240d191
Transpilation MD5: 6e35d2eaf3dbb42763516d27e154c455
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-29 06:00:44
Source code size: 249 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 144 / 224
Referenced in: [show references]