src/HOL/Library/reflection.ML
changeset 30148 5d04b67a866e
parent 29834 3237cfd177f3
child 30743 2c83f7eaf1a4
--- a/src/HOL/Library/reflection.ML	Fri Feb 27 16:54:49 2009 +0100
+++ b/src/HOL/Library/reflection.ML	Fri Feb 27 18:03:47 2009 +0100
@@ -88,17 +88,12 @@
 
 fun dest_listT (Type ("List.list", [T])) = T;
 
-fun partition P [] = ([],[])
-  | partition P (x::xs) = 
-     let val (yes,no) = partition P xs
-     in if P x then (x::yes,no) else (yes, x::no) end
-
 fun rearrange congs = 
 let 
  fun P (_, th) = 
   let val @{term "Trueprop"}$(Const ("op =",_) $l$_) = concl_of th
   in can dest_Var l end
- val (yes,no) = partition P congs 
+ val (yes,no) = List.partition P congs 
  in no @ yes end
 
 fun genreif ctxt raw_eqs t =