Libraryless. Click here for Pure Java version (4571L/25K).
1 | static <A> AutoCloseable tempAddAll(Cl<A> l, Iterable<A> a) { |
2 | if (l == null || a == null) null; |
3 | new L<A> toRemove; |
4 | for (A b : a) |
5 | if (l.add(b)) |
6 | toRemove.add(b); |
7 | ret empty(toRemove) ? null : -> l.removeAll(toRemove); |
8 | } |
Began life as a copy of #1017722
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033991 |
Snippet name: | tempAddAll - temporarily add to collection |
Eternal ID of this version: | #1033991/1 |
Text MD5: | c9f7d057447710a78f04bbf47fe2c95e |
Transpilation MD5: | 7d4592c54819e4a1d21495b8229a85be |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-15 07:17:18 |
Source code size: | 241 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 138 / 208 |
Referenced in: | [show references] |