aboutsummaryrefslogtreecommitdiff
path: root/lib/gmap.mli
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gmap.mli')
-rw-r--r--lib/gmap.mli16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/gmap.mli b/lib/gmap.mli
new file mode 100644
index 0000000000..861e730e26
--- /dev/null
+++ b/lib/gmap.mli
@@ -0,0 +1,16 @@
+
+(* $Id$ *)
+
+(* Maps using the generic comparison function of ocaml. Same interface as
+ the module [Map] from the ocaml standard library. *)
+
+type ('a,'b) t
+
+val empty : ('a,'b) t
+val add : 'a -> 'b -> ('a,'b) t -> ('a,'b) t
+val find : 'a -> ('a,'b) t -> 'b
+val remove : 'a -> ('a,'b) t -> ('a,'b) t
+val mem : 'a -> ('a,'b) t -> bool
+val iter : ('a -> 'b -> unit) -> ('a,'b) t -> unit
+val map : ('b -> 'c) -> ('a,'b) t -> ('a,'c) t
+val fold : ('a -> 'b -> 'c -> 'c) -> ('a,'b) t -> 'c -> 'c