aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins
diff options
context:
space:
mode:
authorGravatar letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-02-18 15:42:36 +0000
committerGravatar letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-02-18 15:42:36 +0000
commitddc9c1bd8e1eaae186468f093e467d8f2e1091cd (patch)
tree6543bbcdca657cfd315be224531f66fed5adb280 /plugins
parent648c594489f8d0ffdde9596b87f5c1ff6ccef612 (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 'plugins')
-rw-r--r--plugins/extraction/table.ml2
-rw-r--r--plugins/firstorder/formula.ml2
-rw-r--r--plugins/funind/merge.ml4
-rw-r--r--plugins/xml/cic2acic.ml2
-rw-r--r--plugins/xml/xmlcommand.ml4
5 files changed, 7 insertions, 7 deletions
diff --git a/plugins/extraction/table.ml b/plugins/extraction/table.ml
index 51946871f..9252ae0ec 100644
--- a/plugins/extraction/table.ml
+++ b/plugins/extraction/table.ml
@@ -273,7 +273,7 @@ let safe_pr_long_global r =
let pr_long_mp mp =
let lid = Dir_path.repr (Nametab.dirpath_of_module mp) in
- str (String.concat "." (List.map Id.to_string (List.rev lid)))
+ str (String.concat "." (List.rev_map Id.to_string lid))
let pr_long_global ref = pr_path (Nametab.path_of_global ref)
diff --git a/plugins/firstorder/formula.ml b/plugins/firstorder/formula.ml
index 093087511..557e9c25d 100644
--- a/plugins/firstorder/formula.ml
+++ b/plugins/firstorder/formula.ml
@@ -169,7 +169,7 @@ let build_atoms gl metagen side cciterm =
| Hyp -> build_rec [] false cciterm
| Hint ->
let rels,head=decompose_prod cciterm in
- let env=List.rev (List.map (fun _->mkMeta (metagen true)) rels) in
+ let env=List.rev_map (fun _->mkMeta (metagen true)) rels in
build_rec env false head;trivial:=false (* special for hints *)
end;
(!trivial,
diff --git a/plugins/funind/merge.ml b/plugins/funind/merge.ml
index 30c60b52b..2c44353f2 100644
--- a/plugins/funind/merge.ml
+++ b/plugins/funind/merge.ml
@@ -663,9 +663,9 @@ let build_link_map_aux (allargs1:Id.t array) (allargs2:Id.t array)
let build_link_map allargs1 allargs2 lnk =
let allargs1 =
- Array.of_list (List.rev (List.map (fun (x,_,_) -> id_of_name x) allargs1)) in
+ Array.of_list (List.rev_map (fun (x,_,_) -> id_of_name x) allargs1) in
let allargs2 =
- Array.of_list (List.rev (List.map (fun (x,_,_) -> id_of_name x) allargs2)) in
+ Array.of_list (List.rev_map (fun (x,_,_) -> id_of_name x) allargs2) in
build_link_map_aux allargs1 allargs2 lnk
diff --git a/plugins/xml/cic2acic.ml b/plugins/xml/cic2acic.ml
index 2772779d4..90712c473 100644
--- a/plugins/xml/cic2acic.ml
+++ b/plugins/xml/cic2acic.ml
@@ -457,7 +457,7 @@ print_endline "PASSATO" ; flush stdout ;
let he1' = remove_module_dirpath_from_dirpath ~basedir he1_sp in
let he1'' =
String.concat "/"
- (List.map Names.Id.to_string (List.rev he1')) ^ "/"
+ (List.rev_map Names.Id.to_string he1') ^ "/"
^ (Names.Id.to_string he1_id) ^ ".var"
in
(he1'',he2)::subst, extra_args, uninst
diff --git a/plugins/xml/xmlcommand.ml b/plugins/xml/xmlcommand.ml
index 479b04228..91e15e8a6 100644
--- a/plugins/xml/xmlcommand.ml
+++ b/plugins/xml/xmlcommand.ml
@@ -35,7 +35,7 @@ let filter_params pvars hyps =
let ids' = id::ids in
let ids'' =
"cic:/" ^
- String.concat "/" (List.rev (List.map Names.Id.to_string ids')) in
+ String.concat "/" (List.rev_map Names.Id.to_string ids') in
let he' =
ids'', List.rev (List.filter (function x -> List.mem x hyps) he) in
let tl' = aux ids' tl in
@@ -531,7 +531,7 @@ let _ = Lexer.set_xml_output_comment (theory_output_string ~do_not_quote:true) ;
let uri_of_dirpath dir =
"/" ^ String.concat "/"
- (List.map Names.Id.to_string (List.rev (Names.Dir_path.repr dir)))
+ (List.rev_map Names.Id.to_string (Names.Dir_path.repr dir))
;;
let _ =