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

6
LINES

< > BotCompany Repo | #1025893 // pairsToCIMultiSet

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

Libraryless. Click here for Pure Java version (2635L/16K).

static MultiSet<S> pairsToCIMultiSet(Iterable<Pair<S, Int>> l) {
  new MultiSet<S> ms;
  fOr (Pair<S, Int> p : l)
    ms.add(p.a, p.b);
  ret ms;
}

Author comment

Began life as a copy of #1010848

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: #1025893
Snippet name: pairsToCIMultiSet
Eternal ID of this version: #1025893/2
Text MD5: e47f50765f0c5d608291bf2cd3918f6c
Transpilation MD5: 6c7f82d6d3873340328ce9886d9a64f5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-28 12:30:34
Source code size: 152 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 174 / 242
Version history: 1 change(s)
Referenced in: [show references]