Page
Library
Module
Module type
Parameter
Class
Class type
Source
Continuous.Make
SourceFunctor building an implementation of the RangeSet.Continuous structure given a totally ordered type.
module Ord : OrderedType
The type of the sets.
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.
point_to_string point
is the written representation of point
.
range_to_string range
is the written representation of range
.
add x s
returns a set containing all elements of s
, plus x
. If x
was already in s
, s
is returned unchanged.
of_point p1 p2
returns the set containing a range from p1 to p2.
merge r s
returns a set containing all elements of s , plus range r
.
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
.
Set difference: diff s1 s2
contains the elements of s1
that are not in s2
.