From fc4231e7370dd69bba695bbeac7349f1d2d81617 Mon Sep 17 00:00:00 2001 From: filliatr Date: Thu, 18 Nov 1999 16:45:13 +0000 Subject: Sets et Maps avec egalite generique git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@121 85f007b7-540e-0410-9357-904b9bb8a0f7 --- lib/gmap.mli | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lib/gmap.mli (limited to 'lib/gmap.mli') 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 -- cgit v1.2.3