summaryrefslogtreecommitdiff
path: root/lib/gmapl.mli
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gmapl.mli')
-rw-r--r--lib/gmapl.mli23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/gmapl.mli b/lib/gmapl.mli
new file mode 100644
index 00000000..f8855ae4
--- /dev/null
+++ b/lib/gmapl.mli
@@ -0,0 +1,23 @@
+(************************************************************************)
+(* 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: gmapl.mli,v 1.4.16.1 2004/07/16 19:30:30 herbelin Exp $ i*)
+
+(* Maps from ['a] to lists of ['b]. *)
+
+type ('a,'b) t
+
+val empty : ('a,'b) t
+val mem : 'a -> ('a,'b) t -> bool
+val iter : ('a -> 'b list -> unit) -> ('a,'b) t -> unit
+val map : ('b list -> 'c list) -> ('a,'b) t -> ('a,'c) t
+val fold : ('a -> 'b list -> 'c -> 'c) -> ('a,'b) t -> 'c -> 'c
+
+val add : 'a -> 'b -> ('a,'b) t -> ('a,'b) t
+val find : 'a -> ('a,'b) t -> 'b list
+val remove : 'a -> 'b -> ('a,'b) t -> ('a,'b) t