Skip to content

MapIterator

1 min read

Import: import system.collections;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

MapIterator

Cursor produced by Map.iterator() — walks occupied slots in place (no snapshot).

public class MapIterator<K, V>: Iterator<KeyValuePair<K, V>>

next

Returns the next key/value pair, or None if exhausted.

public fun next(): Option<KeyValuePair<K, V>>