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

3
LINES

< > BotCompany Repo | #1006198 // dropElement - drop all occurrences of element from list

JavaX fragment (include)

static <A> L<A> dropElement(Collection<A> c, final A element) {
  ret c == null ? null : [A a : c | neq(a, element)];
}

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: #1006198
Snippet name: dropElement - drop all occurrences of element from list
Eternal ID of this version: #1006198/3
Text MD5: 83a943dabefc37473ac5358448f185c9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-03 18:15:51
Source code size: 121 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 567 / 562
Version history: 2 change(s)
Referenced in: [show references]