Diet.MakeSourceAn 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
filter_map_individual f t is the set of all f(x) for x in t.
remove interval t returns the set consisting of t minus interval
min_elt t returns the smallest (in terms of the ordering) element in t, or raises Not_found if the set is empty.
max_elt t returns the largest (in terms of the ordering) element in t, or raises Not_found if the set is empty.
min_interval t returns the smallest (in terms of the ordering) interval in t, or raises Not_found if the set is empty.
max_interval 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
Cross product on all elements of sets
find_next_gap from t returns the next element that's absent in set t and greater than or equal to from *
elements_individual t returns the list of elements in the set t.