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

7
LINES

< > BotCompany Repo | #1003110 - joinSets - uses similar set to first one passed, or HashSet by default

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

Libraryless. Click here for Pure Java version (2546L/16K).

static <A> Set<A> joinSets(Cl<A>... l) {
  Set<A> set = similarEmptySet(first(l));
  for (Cl<A> o : l)
    if (o != null)
      set.addAll(o);
  ret set;
}

Author comment

Began life as a copy of #1001899

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1003110
Snippet name: joinSets - uses similar set to first one passed, or HashSet by default
Eternal ID of this version: #1003110/5
Text MD5: 01c31443e222dd78b2ff8c61137ba4f7
Transpilation MD5: 61e8568cc4f1682de2f118ebec5f2fc9
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-12-18 19:11:22
Source code size: 161 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 481 / 486
Version history: 4 change(s)
Referenced in: #1005272 #1006654 #1010262 #1021329 #1030455 #1030949 #3000382

Formerly at http://tinybrain.de/1003110 & http://1003110.tinybrain.de