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

6
LINES

< > BotCompany Repo | #1026152 // multiSetMapToMultiSet

JavaX fragment (include)

static <A, B> MultiSet<A> multiSetMapToMultiSet(MultiSetMap<A, B> mm) {
  new MultiSet<A> ms;
  for (A a : keys(mm))
    ms.add(a, l(mm.get(a)));
  ret ms;
}

Author comment

Began life as a copy of #1024254

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1026152
Snippet name: multiSetMapToMultiSet
Eternal ID of this version: #1026152/2
Text MD5: 86c2dbcffdd4d8a7c77fb627914530a9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-27 12:46:45
Source code size: 162 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 224 / 259
Version history: 1 change(s)
Referenced in: [show references]