Library
Module
Module type
Parameter
Class
Class type
Functor building an implementation of the RangeSet.Continuous structure given a totally ordered type.
module Ord : OrderedType
The type of the point of a range. A point can be either closed or open, respectively Inc elt
or Exc elt
where elt
is of type elt
The type of the range. A range consists of start
and end
endpoint.
val point_to_string : point -> string
point_to_string point
is the written representation of point
.
val range_to_string : range -> string
range_to_string range
is the written representation of range
.
val to_string : t -> string
to_string set
is the written representation of set
.
val empty : t
The empty set.
val is_empty : t -> bool
is_empty t
tests whether t
is empty or not.
add x s
returns a set containing all elements of s
, plus x
. If x
was already in s
, s
is returned unchanged.
unmerge r s
returns a set containing all elements of s, except those in range r
.
cover r s
returns a set containing elements both belongs to range r
and set s
.