poohbar
val l = listOf(a, b, c) l.forEach { if (someCond) { l.remove(it) l.remove(y) // one of the other elements } }