put

fun put(key: T, value: R): Pair<Pair<T, R>?, Pair<T, R>?>

Set the given co-domain value for a given domain key. Overwrites existing values in domain and co-domain.

Return

Pair of overwritten pairs. First element is the pair that was overwritten in the domain (or null), second element is the pair that was overwritten in the co-domain (or null).

Parameters

key

Key (from the domain) to set the value for.

value

Value (from the co-domain) to set for given domain key.