src/HOL/Tools/inductive_codegen.ML
changeset 33063 4d462963a7db
parent 33050 fe166e8b9f07
child 33244 db230399f890
--- a/src/HOL/Tools/inductive_codegen.ML	Thu Oct 22 10:52:07 2009 +0200
+++ b/src/HOL/Tools/inductive_codegen.ML	Thu Oct 22 13:48:06 2009 +0200
@@ -625,7 +625,7 @@
 fun conv_ntuple fs ts p =
   let
     val k = length fs;
-    val xs = map (fn i => str ("x" ^ string_of_int i)) (0 upto k);
+    val xs = map_range (fn i => str ("x" ^ string_of_int i)) (k + 1);
     val xs' = map (fn Bound i => nth xs (k - i)) ts;
     fun conv xs js =
       if js mem fs then