Kotlin HashMap forEach()
Syntax & Examples
Syntax of HashMap.forEach()
The syntax of HashMap.forEach() extension function is:
fun <K, V> Map<out K, V>.forEach( action: (Entry<K, V>) -> Unit)
This forEach() extension function of HashMap performs the given action on each entry.