keys

open override val keys: Set<K>(source)

Live read-only set of this map's keys in unspecified iteration order.

The view reflects later insertions, removals and clearing. It exposes no collection mutation methods. Structural map changes invalidate its iterator's next call; replacing a value does not. Iterator exhaustion throws NoSuchElementException, and invalidation throws IllegalStateException.