package biocaml

  1. Overview
  2. Docs
The OCaml Bioinformatics Library

Install

Dune Dependency

Authors

Maintainers

Sources

v0.11.1.tar.gz
md5=e292efa2f61fec33dad63ec897106f59
sha512=35519bf3b1e67a9191ef9bb74eba0dae941e0d05bad89076a36f507dc5c2d105a03c1c917d5a3f7ed9d1da4acbf3199582f78c308aa2a5a22c21f743945c852b

doc/biocaml.unix/Biocaml_unix/RSet/index.html

Module Biocaml_unix.RSetSource

Efficient integer sets when many elements expected to be large contiguous sequences of integers.

Sourcetype t

Type of a set of integers.

Sourcetype range = Range.t
Sourceval empty : t

The empty set.

Sourceval of_range_list : (int * int) list -> t

Construct the set of integers representing the union of integers in all given ranges.

Sourceval to_range_list : t -> (int * int) list

Return set of integers as a minimal list of non-overlapping ranges in ascending order by their coordinates.

Sourceval to_list : t -> int list

Return set of integers as a list. Elements will be in ascending order.

Sourceval size : t -> int

Number of elements in set.

Sourceval is_empty : t -> bool

Return true if given set is empty.

Sourceval inter : t -> t -> t

Set intersection.

Sourceval union : t -> t -> t

Set union.

Sourceval diff : t -> t -> t

Set difference. diff s t is the set of elements that are in s but not in t.

Sourceval subset : t -> t -> bool

subset s t returns true if s is a subset of t.

OCaml

Innovation. Community. Security.