Skip to content

SetIterator

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.

SetIterator

An iterator for traversing a Set — walks occupied slots in place (no snapshot).

public class SetIterator<T>: Iterator<T>

next

Returns the next element, or None if exhausted.

public fun next(): Option<T>