Skip to content

SortedMapIterator

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.

SortedMapIterator

Cursor produced by SortedMap.iterator() — walks entries in ascending key order.

public class SortedMapIterator<K: Comparable<K>, V>: Iterator<KeyValuePair<K, V>>

next

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

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