package rangeSet
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=aa70945d14e6d126dac915c7726c707bb3b89748f1bd5a9b6c62305c91f3c507
md5=73528d7ba605b724022d6b7c605cf2cd
doc/rangeSet/RangeSet/Discrete/Make/index.html
Module Discrete.MakeSource
Functor building an implementation of the RangeSet.Discrete structure given a totally ordered type.
Parameters
module Ord : OrderedTypeSignature
The type of the sets.
The type of the range. A range consists of start and end endpoint.
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.
Return the smallest element of the given set (with respect to the Ord.compare ordering), or raise Not_found if the set is empty.
Return the smallest element of the given set (with respect to the Ord.compare ordering), or None if the set is empty.
Return the largest element of the given set (with respect to the Ord.compare ordering), or raise Not_found if the set is empty.
Return the largest element of the given set (with respect to the Ord.compare ordering), or None if the set is empty.
iter_elt f s applies f in turn to all elements of s. The elements of s are presented to f in increasing order with respect to the ordering over the type of the elements.
map_elt f s is the set whose elements are f a0,f a1... f aN, where a0,a1...aN are the elements of s.
The elements are passed to f in increasing order with respect to the ordering over the type of the elements.