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)

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

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, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt

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: 569 / 660
Version history: 2 change(s)
Referenced in: [show references]