-
Notifications
You must be signed in to change notification settings - Fork 0
/
ptset.mli
56 lines (28 loc) · 1.04 KB
/
ptset.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
open Hashcons
type 'a t
val empty : 'a t
val is_empty : 'a t -> bool
val mem : 'a hash_consed -> 'a t -> bool
val add : 'a hash_consed -> 'a t -> 'a t
val singleton : 'a hash_consed -> 'a t
val remove : 'a hash_consed -> 'a t -> 'a t
val union : 'a t -> 'a t -> 'a t
val subset : 'a t -> 'a t -> bool
val inter : 'a t -> 'a t -> 'a t
val diff : 'a t -> 'a t -> 'a t
val equal : 'a t -> 'a t -> bool
(*
[equalq t1 t2] checks equality of [t1] and [t2], using physical equality
over elements.
*)
val equalq : 'a t -> 'a t -> bool
val compare : 'a t -> 'a t -> int
val elements : 'a t -> 'a hash_consed list
val choose : 'a t -> 'a hash_consed
val cardinal : 'a t -> int
val iter : ('a hash_consed -> unit) -> 'a t -> unit
val fold : ('a hash_consed -> 'b -> 'b) -> 'a t -> 'b -> 'b
val for_all : ('a hash_consed -> bool) -> 'a t -> bool
val exists : ('a hash_consed -> bool) -> 'a t -> bool
val filter : ('a hash_consed -> bool) -> 'a t -> 'a t
val partition : ('a hash_consed -> bool) -> 'a t -> 'a t * 'a t