diff options
| author | Hugo Herbelin | 2020-10-03 16:34:37 +0200 |
|---|---|---|
| committer | Hugo Herbelin | 2020-11-21 16:45:21 +0100 |
| commit | 35ff578d093b3616af1280dd768e2afc96a8e09e (patch) | |
| tree | a88e130e283d404fd127027f853021ae647a6ead /pretyping/reductionops.mli | |
| parent | 5b15fce17d856dfbd51482f724ddf5e5f9646073 (diff) | |
Deduce Stack.decomp from Stack.strip_n_app.
Diffstat (limited to 'pretyping/reductionops.mli')
| -rw-r--r-- | pretyping/reductionops.mli | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pretyping/reductionops.mli b/pretyping/reductionops.mli index d404a7e414..7a840c5731 100644 --- a/pretyping/reductionops.mli +++ b/pretyping/reductionops.mli @@ -73,6 +73,7 @@ module Stack : sig val decomp : 'a t -> ('a * 'a t) option val decomp_node_last : 'a app_node -> 'a t -> ('a * 'a t) + [@@ocaml.deprecated "Use decomp_rev"] val compare_shape : 'a t -> 'a t -> bool @@ -93,6 +94,9 @@ module Stack : sig (** @return (the nth first elements, the (n+1)th element, the remaining stack) *) val strip_n_app : int -> 'a t -> ('a t * 'a * 'a t) option + (** [decomp sk] extracts the first argument of reversed stack [sk] is there is some *) + val decomp_rev : 'a t -> ('a * 'a t) option + val not_purely_applicative : 'a t -> bool val list_of_app_stack : constr t -> constr list option |
