Logtk.LazyListUsed for iterating lazily over a stream (possibly infinite). The point of using 'a lazy_t for the tail is that once a list node is forced (evaluated), it is memoized and will not be re-computed if accessed again. This is important for lazy lists of elements that are expensive to compute.
val nil : 'a tval of_fun : (int -> 'a option) -> 'a tval to_list : 'a t -> 'a listGather all values into a list
val fold : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'aFold on values