Loko.Iterator
Imperative iterator.
exception Done
Raised by next without backtrace after all the elements have been returned.
next
type ('xs, 'x) t =
| T : {
start : 'xs -> 'iterator;
next : 'iterator -> 'x;
} -> ('xs, 'x) t
An iterator extracts elements of type 'x one-by-one from a collection of type 'xs.
'x
'xs