Arraylist de filtre Kotlin

fun main() {
    val numbers = arrayListOf("zero", "one", "two", "three", "four")
    println(numbers.filter { it -> it.equals("three") }) /* prints [three] */
}
Smoggy Snail