Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
An interval: a range (x, y) of set values where all the elements from x to y inclusive are in the set
module Interval : sig ... end
include Sexplib0.Sexpable.S with type t := t
val t_of_sexp : Sexplib0.Sexp.t -> t
val sexp_of_t : t -> Sexplib0.Sexp.t
val empty : t
The empty set
val is_empty : t -> bool
Test whether a set is empty or not
fold f t acc
folds f
across all the intervals in t
fold_individual f t acc
folds f
across all the individual elements of t
min_elt t
returns the smallest (in terms of the ordering) interval in t
, or raises Not_found
if the set is empty.
max_elt t
returns the largest (in terms of the ordering) interval in t
, or raises Not_found
if the set is empty.
take n
returns Some a, b
where cardinal a = n
and diff t a = b
or None
if cardinal t < n