📜  kotlin 过滤器数组列表 - Kotlin 代码示例

📅  最后修改于: 2022-03-11 14:53:34.635000             🧑  作者: Mango

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