iterator

operator fun <K, V> Map<K, V>.iterator(): Iterator<Map.Entry<K, V>>(source)

Returns an iterator over this map's entries, enabling for ((key, value) in map).

Delegates to Map.entries.iterator; ordering and invalidation follow the concrete map's contract.

Receiver

map to traverse.

Return

an entry iterator positioned before the first entry.