Kotlin Filter Arraylist

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