Kotlin HashMap putAll()
Syntax & Examples


Syntax of HashMap.putAll()

The syntax of HashMap.putAll() function is:

fun putAll(from: Map<out K, V>)

This putAll() function of HashMap updates this map with key/value pairs from the specified map from.