Module Fang_iter

Efficient iteration over collections.

These are so-called "internal" iterators. The caller provides a callback function which the collection invokes for each of its items.

These iterators are less flexible than Seq.t but should be more efficient since they allocate far less.

This library is inspired by the Iter library by Simon Cruanes. In particular, there is a lot of useful discussion there on the trade-offs of this approach.

type 'a iter = ('a -> unit) -> unit

An iterator over a collection of values of type 'a.

module Iter : sig ... end