aboutsummaryrefslogtreecommitdiff
path: root/lib/gset.mli
diff options
context:
space:
mode:
authorfilliatr1999-11-18 16:45:13 +0000
committerfilliatr1999-11-18 16:45:13 +0000
commitfc4231e7370dd69bba695bbeac7349f1d2d81617 (patch)
treef3fe5e0618418ad1b26ade37e375917774d4bf80 /lib/gset.mli
parenta59513682690d72674f3ae2674b1a8c5b38049a4 (diff)
Sets et Maps avec egalite generique
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@121 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib/gset.mli')
-rw-r--r--lib/gset.mli27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/gset.mli b/lib/gset.mli
new file mode 100644
index 0000000000..645a29cad4
--- /dev/null
+++ b/lib/gset.mli
@@ -0,0 +1,27 @@
+
+(* $Id$ *)
+
+(* Sets using the generic comparison function of ocaml. Same interface as
+ the module [Set] from the ocaml standard library. *)
+
+type 'a t
+
+val empty : 'a t
+val is_empty : 'a t -> bool
+val mem : 'a -> 'a t -> bool
+val add : 'a -> 'a t -> 'a t
+val singleton : 'a -> 'a t
+val remove : 'a -> 'a t -> 'a t
+val union : 'a t -> 'a t -> 'a t
+val inter : 'a t -> 'a t -> 'a t
+val diff : 'a t -> 'a t -> 'a t
+val compare : 'a t -> 'a t -> int
+val equal : 'a t -> 'a t -> bool
+val subset : 'a t -> 'a t -> bool
+val iter : ('a -> unit) -> 'a t -> unit
+val fold : ('a -> 'a -> 'a) -> 'a t -> 'a -> 'a
+val cardinal : 'a t -> int
+val elements : 'a t -> 'a list
+val min_elt : 'a t -> 'a
+val max_elt : 'a t -> 'a
+val choose : 'a t -> 'a