Yeah, you have to use the iterator. But it's much ...
# announcements
d
Yeah, you have to use the iterator. But it's much nicer than in Java.
Copy code
val it = l.iterator()
for (elem in it) {
    if (cond) it.remove()
}