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

6
LINES

< > BotCompany Repo | #1024154 // intMapAsMultiSet

JavaX fragment (include)

1  
static <A> MultiSet<A> intMapAsMultiSet(Map<A, Int> map) {
2  
  MultiSet<A> ms = similarEmptyMultiSet(map);
3  
  for (A a, int i : map)
4  
    ms.add(a, i);
5  
  ret ms;
6  
}

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: #1024154
Snippet name: intMapAsMultiSet
Eternal ID of this version: #1024154/1
Text MD5: 79ff111769a3f08cd2e3b8dd7e145348
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-23 17:53:15
Source code size: 164 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 179 / 208
Referenced in: [show references]