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

7
LINES

< > BotCompany Repo | #1025108 // intArrayAsMultiSet

JavaX fragment (include)

1  
static MultiSet<Int> intArrayAsMultiSet(int[] a) {
2  
  if (a == null) null;
3  
  new MultiSet<Int> ms;
4  
  for (int i : a)
5  
    ms.add(i);
6  
  ret ms;
7  
}

Author comment

Began life as a copy of #1024154

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: #1025108
Snippet name: intArrayAsMultiSet
Eternal ID of this version: #1025108/1
Text MD5: 87bb3388ffb3ab726cdf3345b596e83f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-05 19:05:02
Source code size: 148 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 229 / 275
Referenced in: [show references]