1
module type OrderedType = sig type t val compare : t -> t -> int end
7
val is_empty : t -> bool
8
val mem : elt -> t -> bool
9
val add : elt -> t -> t
10
val singleton : elt -> t
11
val remove : elt -> t -> t
12
val union : t -> t -> t
13
val inter : t -> t -> t
14
val diff : t -> t -> t
15
val compare : t -> t -> int
16
val equal : t -> t -> bool
17
val subset : t -> t -> bool
18
val iter : (elt -> unit) -> t -> unit
19
val fold : (elt -> 'a -> 'a) -> t -> 'a -> 'a
20
val for_all : (elt -> bool) -> t -> bool
21
val exists : (elt -> bool) -> t -> bool
22
val filter : (elt -> bool) -> t -> t
23
val partition : (elt -> bool) -> t -> (t * t)
24
val cardinal : t -> int
25
val elements : t -> elt list
26
val min_elt : t -> elt
27
val max_elt : t -> elt
31
functor (Ord : OrderedType) ->
36
val is_empty : t -> bool
37
val mem : elt -> t -> bool
38
val add : elt -> t -> t
39
val singleton : elt -> t
40
val remove : elt -> t -> t
41
val union : t -> t -> t
42
val inter : t -> t -> t
43
val diff : t -> t -> t
44
val compare : t -> t -> int
45
val equal : t -> t -> bool
46
val subset : t -> t -> bool
47
val iter : (elt -> unit) -> t -> unit
48
val fold : (elt -> 'a -> 'a) -> t -> 'a -> 'a
49
val for_all : (elt -> bool) -> t -> bool
50
val exists : (elt -> bool) -> t -> bool
51
val filter : (elt -> bool) -> t -> t
52
val partition : (elt -> bool) -> t -> (t * t)
53
val cardinal : t -> int
54
val elements : t -> elt list
55
val min_elt : t -> elt
56
val max_elt : t -> elt