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

5
LINES

< > BotCompany Repo | #1021803 // createOrAddToCISet

JavaX fragment (include)

static Set<S> createOrAddToCISet(Set<S> set, S a) {
  if (set == null) set = ciSet();
  set.add(a);
  ret set;
}

Author comment

Began life as a copy of #1020941

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1021803
Snippet name: createOrAddToCISet
Eternal ID of this version: #1021803/3
Text MD5: 5e76cc927a561d2f7b7a851eab8d6e27
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-27 15:34:38
Source code size: 116 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 360 / 372
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1032548 - createOrAddToSet (defaults to HashSet)