Libraryless. Click here for Pure Java version (2225L/14K).
static <A> L<A> listMinusSet(Iterable<A> l, Collection<? extends A> stuff) { if (l == null) null; if (empty(stuff)) ret asList(l); Set<? extends A> set = asSet(stuff); new L<A> l2; for (A a : l) if (!set.contains(a)) l2.add(a); ret l2; } static <A> L<A> listMinusSet(Iterable<A> l, Collection<A> stuff, Collection<? extends A> stuff2) { ret listMinusSet(listMinusSet(l, stuff), stuff2); }
Began life as a copy of #1006092
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1007796 |
Snippet name: | listMinusSet - list minus some elements |
Eternal ID of this version: | #1007796/13 |
Text MD5: | eacaf9519ded282723f0152d8d081acd |
Transpilation MD5: | 6432384ae4735433f70bf4caed9590f7 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-20 11:27:19 |
Source code size: | 414 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 635 / 743 |
Version history: | 12 change(s) |
Referenced in: | [show references] |