Transpiled version (4558L) is out of date.
1 | static <A> Cl<A> lambdaMapLike filterCollectionInPlace(IPred<A> pred, Cl<A> l) { |
2 | if (l == null) ret l; |
3 | var it = l.iterator(); |
4 | while (it.hasNext()) |
5 | if (!pred.get(it.next())) |
6 | it.remove(); |
7 | ret l; |
8 | } |
9 | |
10 | static <A> Cl<A> lambdaMapLike filterCollectionInPlace(Cl<A> l, IPred<A> pred) { |
11 | ret filterCollectionInPlace(pred, l); |
12 | } |
Began life as a copy of #1019151
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033591 |
Snippet name: | filterCollectionInPlace |
Eternal ID of this version: | #1033591/4 |
Text MD5: | c2668c881560cd794cf976764015e35c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-11-04 04:19:55 |
Source code size: | 343 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 153 / 217 |
Version history: | 3 change(s) |
Referenced in: | [show references] |