put

actual open override fun put(key: K, value: V): V?
expect open override fun put(key: K, value: V): V?

Associates the specified value with the specified key in this map.

Return

the previous value associated with the key, or null if there was no mapping

Parameters

key

the key with which the specified value is to be associated

value

the value to be associated with the specified key

actual open override fun put(key: K, value: V): V?
actual open override fun put(key: K, value: V): V?
actual open override fun put(key: K, value: V): V?