aboutsummaryrefslogtreecommitdiff
path: root/toplevel/command.ml
diff options
context:
space:
mode:
authorMatej Kosik2016-08-29 15:35:45 +0200
committerMatej Kosik2016-08-29 15:56:18 +0200
commite969a56e2d0c354057b4d9da0d48349d2a5a61e2 (patch)
treea34ce5ef80fd65ec874d265a3dc48ccd0b75743c /toplevel/command.ml
parent2c513c07473b40c390dc1e1d24bfaf971c685514 (diff)
CLEANUP: taking advantage of "_ % _" operator to express function composition in a more obvious way
This commit rewrites terms (fun x -> f1 (f2 ... (fN x)...)) to f1 % f2 % ... % fN
Diffstat (limited to 'toplevel/command.ml')
-rw-r--r--toplevel/command.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/toplevel/command.ml b/toplevel/command.ml
index 7274ac1701..80df7e48df 100644
--- a/toplevel/command.ml
+++ b/toplevel/command.ml
@@ -578,7 +578,7 @@ let interp_mutual_inductive (paramsl,indl) notations poly prv finite =
(* Names of parameters as arguments of the inductive type (defs removed) *)
let assums = List.filter is_local_assum ctx_params in
- let params = List.map (fun decl -> out_name (RelDecl.get_name decl)) assums in
+ let params = List.map (out_name % RelDecl.get_name) assums in
(* Interpret the arities *)
let arities = List.map (interp_ind_arity env_params evdref) indl in