What you use is not kotlin.collections.MutableMap.forEach
.
What you use is similar Map.forEach
in Java 8.
Read this article:
http://blog.danlew.net/2017/03/16/kotlin-puzzler-whose-line-is-it-anyways/
This seems like a common mistake.
Java 8 is well supported from the Android 24 API level.
, map.forEach { t, u -> Log.i("tag", t + u) }
.
map.forEach { (t, u) -> Log.i("tag", t + u) }
.
( . , .)