src/HOL/Tools/lin_arith.ML
changeset 33339 d41f77196338
parent 33317 b4534348b8fd
child 33519 e31a85f92ce9
--- a/src/HOL/Tools/lin_arith.ML	Thu Oct 29 23:49:55 2009 +0100
+++ b/src/HOL/Tools/lin_arith.ML	Thu Oct 29 23:56:33 2009 +0100
@@ -645,9 +645,9 @@
 
 fun filter_prems_tac_items (p : term -> bool) (terms : term list) : term list =
 let
-  fun filter_prems (t, (left, right)) =
-    if  p t  then  (left, right @ [t])  else  (left @ right, [])
-  val (left, right) = List.foldl filter_prems ([], []) terms
+  fun filter_prems t (left, right) =
+    if p t then (left, right @ [t]) else (left @ right, [])
+  val (left, right) = fold filter_prems terms ([], [])
 in
   right @ left
 end;