You can safely ignore the installation instructions below when compiling to JS. Instead:
Install this fork through npm:
npm install --save @elliottcable/bs-gen
"bs-dependencies": [ ... "@elliottcable/bs-gen" ],
Of note, I ran into some type errors when trying to compile with
GenLabels API enabled; thus, the npm version of this library omits
that entirly. All of the other modules are included, though.
Original README follows:
Iterators for OCaml, both restartable and consumable. The implementation keeps a good balance between simplicity and performance.
The library is extensively tested using
qtest. If you find a bug,
$ opam install gen
or, manually, by building the library and running
make install. Opam is
recommended, for it keeps the library up-to-date.
You can either build and install the library (see "Build"), or just copy files to your own project. The last solution has the benefits that you don't have additional dependencies nor build complications (and it may enable more inlining).
If you have comments, requests, or bugfixes, please share them! :-)
There are no dependencies. This should work with OCaml>=3.12.
To build and run tests (requires
$ opam install oUnit qtest $ ./configure --enable-tests $ make test
This code is free, under the BSD license.