[Haskell-cafe] Quick Sort Algorithm

Andrew Coppin andrewcoppin at btinternet.com
Thu May 17 17:06:36 EDT 2007


PR Stanley wrote:
> Well, actually, this was scanned from a book but the OCR process 
> wasn't 100% effective. So, I was hoping the list would easily identify 
> and replace the erronious characters.
> Thanks for trying, anyway.
> Paul

...would it not be faster to pick up the book and check what the OCR got 
wrong? ;-)

Anyway, I'm going to go out on a limb and suggest

 > smaller = [a | a <- xs, a <= x]
 > larger = [a | a <- xs, a > x]



More information about the Haskell-Cafe mailing list