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

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

代码示例3
val studentList = listOf(asha, john, afra, kyle)
    val filteredList = studentList.filter { student -> 
                student.name.startsWith("A")
    }
    println(filteredList)