StackOverflow 文档 Kotlin 教程 科特林的循环 迭代 kotlin 中的地图 迭代 kotlin 中的地图 Created: November-22, 2018 //iterates over a map, getting the key and value at once var map = hashMapOf(1 to "foo", 2 to "bar", 3 to "baz") for ((key, value) in map) { println("Map[$key] = $value") } 递归休息并继续