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

6
LINES

< > BotCompany Repo | #1005269 // setMinus - set minus some elements

JavaX fragment (include)

1  
static <A> Set<A> setMinus(Set<A> set, O... stuff) {
2  
  Set s2 = cloneSet(set);
3  
  for (O o : stuff)
4  
    s2.remove(o);
5  
  ret s2;
6  
}

Author comment

Began life as a copy of #1004283

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005269
Snippet name: setMinus - set minus some elements
Eternal ID of this version: #1005269/1
Text MD5: cf1b44745680e8bbf6529d11dd26a3d9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-27 22:56:36
Source code size: 133 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 562 / 528
Referenced in: [show references]