Libraryless. Click here for Pure Java version (7897L/44K).
1 | static <A> MultiSet<A> cloneMultiSet(MultiSet<A> ms) {
|
2 | if (ms == null) ret new MultiSet; |
3 | MultiSet<A> ms2 = similarEmptyMultiSet(ms); |
4 | ms2.addAll(ms); |
5 | ret ms2; |
6 | } |
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: | 357 / 463 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |