diff options
| author | ppedrot | 2013-03-23 15:05:26 +0000 |
|---|---|---|
| committer | ppedrot | 2013-03-23 15:05:26 +0000 |
| commit | 914d19f19cd73d1794c0160bd6e7358c13eba630 (patch) | |
| tree | c60b68ddac62f60f1bef763ba970805d228180ad /kernel/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 'kernel/inductive.ml')
| -rw-r--r-- | kernel/inductive.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/inductive.ml b/kernel/inductive.ml index 3132b7e796..b932376791 100644 --- a/kernel/inductive.ml +++ b/kernel/inductive.ml @@ -55,7 +55,7 @@ let inductive_params (mib,_) = mib.mind_nparams let ind_subst mind mib = let ntypes = mib.mind_ntypes in let make_Ik k = mkInd (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 |
