Simple iterator abstract datatype, intended to iterate efficiently on collections while performing some transformations.
Iter is an OCaml library that provides a simple abstraction for efficiently iterating over collections while applying transformations. It implements an internal iterator datatype designed for loop fusion, supporting common operations like filter, map, take, drop, and fold with minimal memory allocation. The library aims to be simpler and more efficient than the standard library's Seq type by leveraging compiler optimizations like flambda to eliminate intermediate closures. Iter was created by c-cube and is distributed under the BSD license.