Contact: aviboots(AT)netvision.net.il
40,759 questions
53,131 answers
573 users
fun main() { val mutableSet = mutableSetOf(1, 2, 3, 4, 5) mutableSet.removeIf { it > 2 } println(mutableSet) } /* run: [1, 2] */