diff options
author | ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-03-23 15:05:26 +0000 |
---|---|---|
committer | ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-03-23 15:05:26 +0000 |
commit | 914d19f19cd73d1794c0160bd6e7358c13eba630 (patch) | |
tree | c60b68ddac62f60f1bef763ba970805d228180ad /checker/inductive.ml | |
parent | 7bc3e1ce35798d089a979f3cb5a4c5ecc232f850 (diff) |
Minor code cleaning in CArray / CList.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16351 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'checker/inductive.ml')
-rw-r--r-- | checker/inductive.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/checker/inductive.ml b/checker/inductive.ml index abc162af7..5fdca0fab 100644 --- a/checker/inductive.ml +++ b/checker/inductive.ml @@ -58,7 +58,7 @@ let inductive_params (mib,_) = mib.mind_nparams let ind_subst mind mib = let ntypes = mib.mind_ntypes in let make_Ik k = Ind (mind,ntypes-k-1) in - List.tabulate make_Ik ntypes + List.init ntypes make_Ik (* Instantiate inductives in constructor type *) let constructor_instantiate mind mib c = @@ -527,7 +527,7 @@ let branches_specif renv c_spec ci = vra | Dead_code -> Array.make nca Dead_code | _ -> Array.make nca Not_subterm) in - List.tabulate (fun j -> lazy (Lazy.force lvra).(j)) nca) + List.init nca (fun j -> lazy (Lazy.force lvra).(j))) car (* [subterm_specif renv t] computes the recursive structure of [t] and |