set

operator fun set(key: Iterable<K>, value: V): V?

Insert a new key-value pair into the receiver, replacing any existing value associated with the specified key.

Return

The value previously associated with key, if any.

Parameters

key

The search key.

value

The payload to associate with the key.