diff options
| author | letouzey | 2013-02-18 15:42:36 +0000 |
|---|---|---|
| committer | letouzey | 2013-02-18 15:42:36 +0000 |
| commit | ddc9c1bd8e1eaae186468f093e467d8f2e1091cd (patch) | |
| tree | 6543bbcdca657cfd315be224531f66fed5adb280 /toplevel | |
| parent | 648c594489f8d0ffdde9596b87f5c1ff6ccef612 (diff) | |
use List.rev_map whenever possible
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16211 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel')
| -rw-r--r-- | toplevel/auto_ind_decl.ml | 2 | ||||
| -rw-r--r-- | toplevel/himsg.ml | 2 | ||||
| -rw-r--r-- | toplevel/mltop.ml | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/toplevel/auto_ind_decl.ml b/toplevel/auto_ind_decl.ml index 6e88628bdc..3fa932f063 100644 --- a/toplevel/auto_ind_decl.ml +++ b/toplevel/auto_ind_decl.ml @@ -42,7 +42,7 @@ and aux = function let deconstruct_type t = let l,r = decompose_prod t in - (List.map (fun (_,b) -> b) (List.rev l))@[r] + (List.rev_map snd l)@[r] exception EqNotFound of inductive * inductive exception EqUnknown of string diff --git a/toplevel/himsg.ml b/toplevel/himsg.ml index 18638ad8bd..c0f1903df6 100644 --- a/toplevel/himsg.ml +++ b/toplevel/himsg.ml @@ -1052,7 +1052,7 @@ let is_defined_ltac trace = let explain_ltac_call_trace (nrep,last,trace,loc) = let calls = - (nrep,last) :: List.rev (List.map(fun(n,_,ck)->(n,ck))trace) + (nrep,last) :: List.rev_map (fun(n,_,ck)->(n,ck)) trace in let pr_call (n,ck) = (match ck with diff --git a/toplevel/mltop.ml b/toplevel/mltop.ml index 59059a77af..d5d8b10763 100644 --- a/toplevel/mltop.ml +++ b/toplevel/mltop.ml @@ -174,7 +174,7 @@ let add_rec_path ~unix_path ~coq_root = let prefix = Names.Dir_path.repr coq_root in let convert_dirs (lp, cp) = try - let path = List.map convert_string (List.rev cp) @ prefix in + let path = List.rev_map convert_string cp @ prefix in Some (lp, Names.Dir_path.make path) with Exit -> None in |
