copyTo

fun <K, V, D : MutableMap<K, V>> Map<out K, V>.copyTo(destination: D): D

Copies entries of this map to the destination map overriding present ones if needed.

Receiver

map to be copied.

Return

the destination.

Parameters

destination

map to receive copies.