put

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

Associates the specified value with the specified key in the map. If the key already exists, it is moved to the end of the iteration order.

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