Libraryless. Click here for Pure Java version (4571L/25K).
static <A> AutoCloseable tempAddAll(Cl<A> l, Iterable<A> a) { if (l == null || a == null) null; new L<A> toRemove; for (A b : a) if (l.add(b)) toRemove.add(b); ret empty(toRemove) ? null : -> l.removeAll(toRemove); }
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: | 137 / 207 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |