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

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

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