package vec
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
md5=3f89caa9ce2738c4c1acc1e66656646b
sha512=3b1d7314229ead76cd211bffb173ffcc6f2f52166113d32b1c3938a59a61c611b0517ce86102146dd800c29cb8200424204de0eaf0f6e7830abcdd8ca4c2532a
Description
This library provides efficient dynamic arrays with Rust-like mutability permissions.
Added to opam-repository:
README
vec
Fast, safe mutable dynamic arrays for OCaml.
You can find API documentation here.
Summary
The idea behind this library is to provide efficient, mutable dynamic arrays with Rust-like mutability permissions.
To achieve this, the Vec.t type uses a polymorphic variant as a phantom type parameter, which is [`R | `W] for read-write vectors, [`R] for read-only vectors, or [`W] for write-only vectors.
All functions defined in the Vec module are polymorphic in this type parameter, only requiring it to contain each function's needed capability.
For example, functions that only read data from a vector accept a ('a, [> `R]) Vec.t parameter, so both [`R] vectors and [`R | `W] vectors can be passed.
Installing
The package can be found on OPAM here.
To install it, run:
opam install vecBuilding from source
To build the project and run the test suite, run the following in the root of the repository:
dune build @doc @runtestLicense
This repository is licensed under the terms of the GNU General Public License v3.
For more details, see the license file.
Optional Dependencies
None
Used by (1)
Conflicts
None
Build status
Results of building vec with each compiler on check.ci.ocaml.org, run of against opam-repository 78c202b. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.4.0 (this version) | good | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure