Skip to content

Iterable

1 min read

No import is needed.

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.

Iterable

A sequence that creates a fresh synchronous cursor for each traversal.

public interface Iterable<T>

iterator

Creates a cursor over the sequence. Close it when iteration ends early.

borrow fun iterator(): Iterator<T>