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

7
LINES

< > BotCompany Repo | #1006092 - listMinusList - list minus some elements

JavaX fragment (include)

1  
static <A> L<A> listMinusList(Collection<A> l, Collection stuff) {
2  
  if (empty(stuff) && l instanceof L) ret (L) l;
3  
  L<A> l2 = cloneList(l);
4  
  for (O o : stuff)
5  
    l2.remove(o);
6  
  ret l2;
7  
}

Author comment

Began life as a copy of #1004283

download  show line numbers  debug dex   

Travelled to 11 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, sawdedvomwva, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1006092
Snippet name: listMinusList - list minus some elements
Eternal ID of this version: #1006092/3
Text MD5: 8559acf446fb769f553d47a28ca9fc60
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-11 19:14:55
Source code size: 197 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 343 / 404
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1006092 & http://1006092.tinybrain.de