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

15
LINES

< > BotCompany Repo | #1021329 // joinCISets

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

Libraryless. Click here for Pure Java version (141L/1K).

static Set<S> joinCISets(Collection<S>... l) {
  Set<S> set = ciSet();
  for (Collection<S> o : l)
    if (o != null)
      set.addAll(o);
  ret set;
}

static Set<S> joinCISets(Iterable<? extends Cl<S>> l) {
  Set<S> set = ciSet();
  if (l != null) for (Collection<S> o : l)
    if (o != null)
      set.addAll(o);
  ret set;
}

Author comment

Began life as a copy of #1003110

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1021329
Snippet name: joinCISets
Eternal ID of this version: #1021329/3
Text MD5: fd5a96a4d8f2c53ef94406fbc6b6edbd
Transpilation MD5: 0e7484d40cb38e9579295764ad2f390a
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-24 22:07:33
Source code size: 342 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 231 / 320
Version history: 2 change(s)
Referenced in: [show references]