get

abstract operator fun get(key: K): V?(source)

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

A stored null is indistinguishable from an absent key in this result. Use containsKey to distinguish them. Also supports map[key] syntax.

Return

the associated value, or null when no association exists.

Parameters

key

key to look up.