Simple, efficient iterators for OCaml
Gen is a library that provides iterators for OCaml, supporting both restartable and consumable variants while balancing simplicity and performance. Written in OCaml and built with the Dune build system, it's installable via Opam for native OCaml projects or via npm as BuckleScript bindings for JavaScript environments. The project is maintained by c-cube and is extensively tested using qtest, with documentation and the main Gen module serving as the primary reference for users.