aboutsummaryrefslogtreecommitdiff
path: root/kernel/context.mli
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2020-11-17 19:06:34 +0100
committerPierre-Marie Pédrot2020-11-17 19:06:34 +0100
commit7c79a0da543536da48cd49cb9b09682fb9a6efe8 (patch)
treef7b6a3c08b0c86ced67793bb9e600bd254f3096a /kernel/context.mli
parentf1b7a377473919327a270090090d774b678f6628 (diff)
parent05cf3fca1d0800e4cefaed3cb1825a8420ce9f2c (diff)
Merge PR #13397: Adding heterogeneous map on named contexts.
Reviewed-by: ppedrot
Diffstat (limited to 'kernel/context.mli')
-rw-r--r--kernel/context.mli3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/context.mli b/kernel/context.mli
index 76c4461760..29309daf34 100644
--- a/kernel/context.mli
+++ b/kernel/context.mli
@@ -231,6 +231,9 @@ sig
(** Map all terms in a given declaration. *)
val map_constr : ('c -> 'c) -> ('c, 'c) pt -> ('c, 'c) pt
+ (** Map all terms, with an heterogeneous function. *)
+ val map_constr_het : ('a -> 'b) -> ('a, 'a) pt -> ('b, 'b) pt
+
(** Perform a given action on all terms in a given declaration. *)
val iter_constr : ('c -> unit) -> ('c, 'c) pt -> unit