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

6
LINES

< > BotCompany Repo | #1034847 // multiSetMapToMapPairs

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

Transpiled version (5456L) is out of date.

static <A, B> LPair<A, Set<B>> multiSetMapToMapPairs(MultiSetMap<A, B> mm) {
  LPair<A, Set<B>> out = new L;
  for (A key : keys(mm))
    out.add(pair(key, mm.get(key)));
  ret out;
}

Author comment

Began life as a copy of #1034842

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1034847
Snippet name: multiSetMapToMapPairs
Eternal ID of this version: #1034847/3
Text MD5: d2196b8fe76337484896a58b8850f3f2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-11 04:25:26
Source code size: 188 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 125 / 185
Version history: 2 change(s)
Referenced in: [show references]