(intermediate commit)
authorhaftmann
Wed, 13 Jul 2005 10:44:51 +0200
changeset 16785 2eddcce4fd16
parent 16784 92ff7c903585
child 16786 54b5df610651
(intermediate commit)
src/HOL/Tools/inductive_package.ML
--- a/src/HOL/Tools/inductive_package.ML	Wed Jul 13 09:53:50 2005 +0200
+++ b/src/HOL/Tools/inductive_package.ML	Wed Jul 13 10:44:51 2005 +0200
@@ -178,8 +178,8 @@
 fun unify_consts thy cs intr_ts =
   (let
     val tsig = Sign.tsig_of thy;
-    val add_term_consts_2 =
-      foldl_aterms (fn (cs, Const c) => c ins cs | (cs, _) => cs);
+    fun add_term_consts_2 (x, y) =
+      fold_aterms (fn (Const c) => curry (op ins) c | _ => I) y x;
     fun varify (t, (i, ts)) =
       let val t' = map_term_types (incr_tvar (i + 1)) (#1 (Type.varify (t, [])))
       in (maxidx_of_term t', t'::ts) end;