Libraryless. Click here for Pure Java version (46L/1K).
static <A> bool removeAll(Collection<A> a, Collection<A> b) { ret a != null && b != null && a.removeAll(b); } static <A, B> void removeAll(Map<A, B> a, Collection<A> b) { if (a != null && b != null) for (A x : b) a.remove(x); } static <A, B extends A> bool removeAll(Collection<A> c, B... b) { ret c != null && b != null && c.removeAll(Arrays.asList(b)); } static <A, B> void removeAll(Map<A, B> a, A... b) { if (a != null && b != null) for (A x : b) a.remove(x); }
Began life as a copy of #1011634
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1014404 | 
| Snippet name: | removeAll | 
| Eternal ID of this version: | #1014404/6 | 
| Text MD5: | 51cecc633a30922a256ac07b15da83a5 | 
| Transpilation MD5: | 88e9fb27d26f73d8cd6e86db4e02d74e | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2022-04-01 19:51:15 | 
| Source code size: | 514 bytes / 19 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 744 / 947 | 
| Version history: | 5 change(s) | 
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1028291 - removeFromCollection |