diff options
author | Samuel Mimram <samuel.mimram@ens-lyon.org> | 2004-07-28 21:54:47 +0000 |
---|---|---|
committer | Samuel Mimram <samuel.mimram@ens-lyon.org> | 2004-07-28 21:54:47 +0000 |
commit | 6b649aba925b6f7462da07599fe67ebb12a3460e (patch) | |
tree | 43656bcaa51164548f3fa14e5b10de5ef1088574 /lib/gset.mli |
Imported Upstream version 8.0pl1upstream/8.0pl1
Diffstat (limited to 'lib/gset.mli')
-rw-r--r-- | lib/gset.mli | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/gset.mli b/lib/gset.mli new file mode 100644 index 00000000..32d798cc --- /dev/null +++ b/lib/gset.mli @@ -0,0 +1,34 @@ +(************************************************************************) +(* v * The Coq Proof Assistant / The Coq Development Team *) +(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *) +(* \VV/ **************************************************************) +(* // * This file is distributed under the terms of the *) +(* * GNU Lesser General Public License Version 2.1 *) +(************************************************************************) + +(*i $Id: gset.mli,v 1.3.16.1 2004/07/16 19:30:30 herbelin Exp $ i*) + +(* 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 |