diff options
| author | filliatr | 1999-11-18 16:45:13 +0000 |
|---|---|---|
| committer | filliatr | 1999-11-18 16:45:13 +0000 |
| commit | fc4231e7370dd69bba695bbeac7349f1d2d81617 (patch) | |
| tree | f3fe5e0618418ad1b26ade37e375917774d4bf80 /lib/gmap.mli | |
| parent | a59513682690d72674f3ae2674b1a8c5b38049a4 (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/gmap.mli')
| -rw-r--r-- | lib/gmap.mli | 16 |
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 |
