Compatible with the library "sequence". An iterator i
is simply
a function that accepts another function f
(of type 'a -> unit
)
and calls f
on a sequence of elements f x1; f x2; ...; f xn
.
val empty : 'a t
val return : 'a ‑> 'a t
val of_list : 'a list ‑> 'a t
val of_array : 'a array ‑> 'a t
val find : ('a ‑> bool) ‑> 'a t ‑> 'a option