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

3
LINES

< > BotCompany Repo | #1036112 // addIfNotContained - synonym of setAdd

JavaX fragment (include)

static <A> bool addIfNotContained(Collection<A> c, A a) {
  ret setAdd(c, a);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036112
Snippet name: addIfNotContained - synonym of setAdd
Eternal ID of this version: #1036112/1
Text MD5: 920a4b6c6feaf7ff248908f64429e9a5
Author: someone
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-09-21 17:51:08
Source code size: 79 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 169 / 155
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)