core.iter
The iterator interfaces used by for loops.
All modules · Writing docstrings
Imports and exports
Section titled “Imports and exports”import core.opt.{Opt}type Iter[T]A stateful iterator that yields values of type T.
Iter.next
Section titled “Iter.next”func next(self): Opt[T]Advance the iterator. Return Val(item) or Non when exhausted.
ToIter
Section titled “ToIter”type ToIter[T]A value that can provide an iterator. for calls to_iter before iteration.
ToIter.to_iter
Section titled “ToIter.to_iter”func to_iter(self): Iter[T]Create an iterator over this value.