diff options
author | 2009-10-26 11:08:34 +0000 | |
---|---|---|
committer | 2009-10-26 11:08:34 +0000 | |
commit | 5dcc913519b8822ddf59eb3a356028f45f42cc3b (patch) | |
tree | a92cbe9fb3fdabff79163bb04e7d7f5bc87cbee7 /lib/fmap.mli | |
parent | 14893db7bda6542fa466508d962920ee64d3e45a (diff) |
New functors for gmap and gset.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12417 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib/fmap.mli')
-rw-r--r-- | lib/fmap.mli | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/fmap.mli b/lib/fmap.mli new file mode 100644 index 000000000..c323b0558 --- /dev/null +++ b/lib/fmap.mli @@ -0,0 +1,23 @@ + +module Make : functor (X : Map.OrderedType) -> +sig + type key = X.t + type 'a t + +val empty : 'a t +val is_empty : 'a t -> bool +val add : key -> 'a -> 'a t -> 'a t +val find : key -> 'a t -> 'a +val remove : key -> 'a t -> 'a t +val mem : key -> 'a t -> bool +val iter : (key -> 'a -> unit) -> 'a t -> unit +val map : ('a -> 'b) -> 'a t -> 'b t +val fold : (key -> 'a -> 'c -> 'c) -> 'a t -> 'c -> 'c + +(* Additions with respect to ocaml standard library. *) + +val dom : 'a t -> key list +val rng : 'a t -> 'a list +val to_list : 'a t -> (key * 'a) list +end + |