package diet
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Diet.IntSource
The type of the set elements
An interval: a range (x, y) of set values where all the elements from x to y inclusive are in the set
The type of sets
Pretty-print a set
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
remove interval t returns the set consisting of t minus interval
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.
choose t returns one interval, 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