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

6
LINES

< > BotCompany Repo | #1018058 // setPlus - set plus more elements

JavaX fragment (include)

static <A> Set<A> setPlus(Collection<A> l, A... more) {
  Set<A> set = similarEmptySet(l);
  addAll(set, l);
  for (A a : more) set.add(a);
  ret set;
}

Author comment

Began life as a copy of #1003336

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1018058
Snippet name: setPlus - set plus more elements
Eternal ID of this version: #1018058/2
Text MD5: 553830567965a83475f7630c33b8c323
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-05 11:09:02
Source code size: 157 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 390 / 442
Version history: 1 change(s)
Referenced in: [show references]