get

open operator override fun get(key: K): V?(source)

Returns the value associated with key, or null when the key is absent.

Also supports map[key]. A stored null produces the same result as an absent key; use containsKey to distinguish them.

Return

the associated value, or null if no association exists.

Parameters

key

key to look up.