put

open fun put(key: K, value: V): MutableList<V>?

Sets an association from the given key to the given value. This operation replaces any existing associations between key and other values.

Return

The previous values associated with key or null if no values were previously associated.

Parameters

key

The key to associate

value

The value to associate