val empty : t
val to_string : t -> string
add_range t i j
adds all the numbers between i
and j
(inclusive) to the set. Note that it doesn't matter which order i
and j
are specified in; either way the effect is the same.
val mem : t -> int -> bool
mem t i
tests whether i
is a member of the set.
val ranges : t -> (int * int) list
ranges t
returns a list of all ranges that make up the set.
val max : t -> int option
val min : t -> int option