📜  kotlin 地图过滤器 - Kotlin 代码示例

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

代码示例1
val studentsMap = mapOf(101 to "Asha", 102 to "John", 103 to "Afra", 104 to "Kyle")
   val filteredMap = studentsMap.filter { (_, value) -> value.startsWith("A")}