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

6
LINES

< > BotCompany Repo | #1026152 // multiSetMapToMultiSet

JavaX fragment (include)

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

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: 226 / 262
Version history: 1 change(s)
Referenced in: [show references]