package mset

All checked builds pass
  1. Overview
  2. Docs
A library for small multisets

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.2.0.tar.gz
md5=25331ce4aef92d04a9bbdc18aec7a545
sha512=083e58170f5ec786e2e33894e0b92a91da754b7f1a7e3ed75c66d24e06747e653e77df31dc53a4720c79ddf4e23a6815373d75024e2c3ca369449792fe2bae58

Description

Implements small multisets using bitmaps.

Added to opam-repository:

README

mset: an OCaml library for small multisets

This module implements a persistent data structure for multisets using bitmaps, for multisets small enough to fit in a single machine integer.

The universe (i.e. the elements that can be stored in the multiset and, for each, its maximal multiplicity) has to be provided upfront.

Example

For instance,

  module MS = (val chars ['a',12; 'b',42; 'c',27])

provides you with a module MS that implements multisets containing at most 12 occurrences of the element 'a', at most 42 occurrences of the element 'b', and at most 27 occurrences of the element 'c'.

Internally, the data type MS.t is implemented as a bitset of type int, yet behind an abstract data type. The API is defensive: functions over multisets fail if they are given elements not belonging to the universe (i.e. a character other than 'a', 'b', and 'c'), or if the capacity of an element is exceeded.

Elements are not limited to characters. A functor allows you to build multisets for any type of elements.

Documentation

For more details, have a look at the documentation.

Dependencies (2)

  1. dune >= "2.0.0"
  2. ocaml >= "4.04"

Dev Dependencies (1)

  1. odoc with-doc

Optional Dependencies

None

Used by

None

Conflicts

None

Build status

Results of building mset 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.2.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