📜  kotlin map filterNot - Kotlin 代码示例

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

代码示例1
val studentsMap = mapOf(1 to "Asha", 2 to "John", 3 to "Afra", 4 to "Kyle")
   val filteredMap = studentsMap.filterNot { (_, value): Map.Entry -> value.startsWith("K")}