Skip to content
Try Kata

core.iter

The iterator interfaces used by for loops.

All modules · Writing docstrings

import core.opt.{Opt}
type Iter[T]

A stateful iterator that yields values of type T.

Source, line 6

func next(self): Opt[T]

Advance the iterator. Return Val(item) or Non when exhausted.

Source, line 8

type ToIter[T]

A value that can provide an iterator. for calls to_iter before iteration.

Source, line 12

func to_iter(self): Iter[T]

Create an iterator over this value.

Source, line 14