aboutsummaryrefslogtreecommitdiffhomepage
path: root/kernel/term.ml
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/term.ml')
-rw-r--r--kernel/term.ml5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/term.ml b/kernel/term.ml
index fa204b570..44a10aa35 100644
--- a/kernel/term.ml
+++ b/kernel/term.ml
@@ -339,6 +339,11 @@ let decompose_app c =
| App (f,cl) -> (f, Array.to_list cl)
| _ -> (c,[])
+let decompose_appvect c =
+ match kind_of_term c with
+ | App (f,cl) -> (f, cl)
+ | _ -> (c,[||])
+
(****************************************************************************)
(* Functions for dealing with constr terms *)
(****************************************************************************)