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

7
LINES

< > BotCompany Repo | #1025108 // intArrayAsMultiSet

JavaX fragment (include)

static MultiSet<Int> intArrayAsMultiSet(int[] a) {
  if (a == null) null;
  new MultiSet<Int> ms;
  for (int i : a)
    ms.add(i);
  ret ms;
}

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: 227 / 272
Referenced in: [show references]