src/Pure/Isar/code.ML
changeset 33955 fff6f11b1f09
parent 33756 47b7c9e0bf6e
child 33957 e9afca2118d4
--- a/src/Pure/Isar/code.ML	Tue Nov 24 14:37:23 2009 +0100
+++ b/src/Pure/Isar/code.ML	Tue Nov 24 17:28:25 2009 +0100
@@ -128,7 +128,7 @@
     val args = args_of thm;
     val incr_idx = Logic.incr_indexes ([], Thm.maxidx_of thm + 1);
     fun matches_args args' = length args <= length args' andalso
-      Pattern.matchess thy (args, (map incr_idx o curry Library.take (length args)) args');
+      Pattern.matchess thy (args, (map incr_idx o curry (uncurry take) (length args)) args');
     fun drop (thm', proper') = if (proper orelse not proper')
       andalso matches_args (args_of thm') then 
         (warning ("Code generator: dropping redundant code equation\n" ^