package gen
Install
Dune Dependency
Authors
Maintainers
Sources
md5=f242db157222474b9715fef49a1259a4
sha512=192178de106d2ae5f936caead8b21b4b9ec1b8fe35ba56296825900ea15a4ea702caf8824ac34d4478d107b954e22c3dffd81f12d4c08fbd6d9760f49a0deb14
Description
README
Gen
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, please report!
The documentation can be found here the main module is Gen and should suffice for 95% of use cases.
Native install
Installation in a native OCaml project, via opam:
$ opam install gen
or, manually, by building the library and running make install
. Opam is recommended, for it keeps the library up-to-date.
BuckleScript install
Installation in JavaScript, via BuckleScript, in an npm project:
Install this package:
$ npm install bs-gen
Manually add
bs-gen
to yourbsconfig.json
'sbs-dependencies
:"bs-dependencies": [ ... "bs-gen" ],
Use
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! :-)
Build
There are no dependencies except for dune
for building. This should work with OCaml>=4.02
$ make
To build and run tests (requires oUnit
and qtest
):
$ opam install oUnit qtest
$ make test
License
This code is free, under the BSD license.
Dependencies (4)
-
ocaml
>= "4.03.0"
- base-bytes
- dune-configurator
-
dune
>= "1.1"
Used by (12)
- archsat
-
beluga
= "1.0"
-
catala
= "0.3.0"
-
choice
>= "0.4"
-
containers
>= "2.0"
- containers-data
- dolmen_loop
- electrod
- oseq
- primes
-
sedlex
= "1.99.1" | >= "1.99.3"
-
zipperposition
< "1.1"
Conflicts
None