Libraryless. Click here for Pure Java version (46L/1K).
1 | static <A> bool removeAll(Collection<A> a, Collection<A> b) {
|
2 | ret a != null && b != null && a.removeAll(b); |
3 | } |
4 | |
5 | static <A, B> void removeAll(Map<A, B> a, Collection<A> b) {
|
6 | if (a != null && b != null) |
7 | for (A x : b) |
8 | a.remove(x); |
9 | } |
10 | |
11 | static <A, B extends A> bool removeAll(Collection<A> c, B... b) {
|
12 | ret c != null && b != null && c.removeAll(Arrays.asList(b)); |
13 | } |
14 | |
15 | static <A, B> void removeAll(Map<A, B> a, A... b) {
|
16 | if (a != null && b != null) |
17 | for (A x : b) |
18 | a.remove(x); |
19 | } |
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: | 735 / 937 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |