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

6
LINES

< > BotCompany Repo | #1035051 // cloneMultiSet

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

Libraryless. Click here for Pure Java version (7897L/44K).

static <A> MultiSet<A> cloneMultiSet(MultiSet<A> ms) {
  if (ms == null) ret new MultiSet;
  MultiSet<A> ms2 = similarEmptyMultiSet(ms);
  ms2.addAll(ms);
  ret ms2;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035051
Snippet name: cloneMultiSet
Eternal ID of this version: #1035051/3
Text MD5: 10cb68064a601a8d25cd0abf51eb38e9
Transpilation MD5: 2e3246a1a934e433c9765a08986a3639
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-26 02:32:42
Source code size: 172 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 130 / 196
Version history: 2 change(s)
Referenced in: [show references]