Answers for "kotlin map filterNot"

0

kotlin map filterNot

val studentsMap = mapOf(1 to "Asha", 2 to "John", 3 to "Afra", 4 to "Kyle")
   val filteredMap = studentsMap.filterNot { (_, value): Map.Entry<Int, String> -> value.startsWith("K")}
Posted by: Guest on November-06-2021

Browse Popular Code Answers by Language