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

10
LINES

< > BotCompany Repo | #1034850 // similarEmptyMultiSetMap - make an effort to create an empty MultiSetMap of same type

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

Libraryless. Click here for Pure Java version (5482L/30K).

static MultiSetMap similarEmptyMultiSetMap(MultiSetMap m) {
  ret similarEmptyMultiSetMap(m?.data);
}

static MultiSetMap similarEmptyMultiSetMap(Map m) {
  new MultiSetMap mm;
  if (m != null)
    mm.data = similarEmptyMap(m);
  ret mm;
}

Author comment

Began life as a copy of #1020214

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1034850
Snippet name: similarEmptyMultiSetMap - make an effort to create an empty MultiSetMap of same type
Eternal ID of this version: #1034850/3
Text MD5: 5cea981e2fa42a31eb89b7f3ce201fa3
Transpilation MD5: 1601c78f8719ccdf848fe83aed2ff159
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-11 05:33:30
Source code size: 248 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 130 / 191
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)