diff options
| author | ppedrot | 2013-10-06 19:37:47 +0000 |
|---|---|---|
| committer | ppedrot | 2013-10-06 19:37:47 +0000 |
| commit | fd4bb20be1cdde645391ad514db8525c14d2a05e (patch) | |
| tree | 54ffcd9164440fb70dd151a88ae89ad21fbdb384 /lib/cMap.mli | |
| parent | 73c5ecd3d038b4143910762c0132e147c56a85a2 (diff) | |
Added a [modify] function to maps.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16853 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib/cMap.mli')
| -rw-r--r-- | lib/cMap.mli | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/cMap.mli b/lib/cMap.mli index 222138828e..8865c1eefd 100644 --- a/lib/cMap.mli +++ b/lib/cMap.mli @@ -24,6 +24,10 @@ sig module Set : Set.S with type elt = key (** Sets used by the domain function *) + val modify : key -> (key -> 'a -> 'a) -> 'a t -> 'a t + (** Apply the given function to the binding of the given key. + @raise [Not_found] when the key is unbound in the map. *) + val domain : 'a t -> Set.t (** Recover the set of keys defined in the map. *) |
