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

6
LINES

< > BotCompany Repo | #1024154 // intMapAsMultiSet

JavaX fragment (include)

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

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: 178 / 206
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1025108 - intArrayAsMultiSet