Advertisement
clairec

Untitled

Oct 2nd, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import Data.List
  2.  
  3. quickSort []     = []
  4. quickSort (x:xs) = (quickSort smaller) ++ [x] ++ (quickSort bigger)
  5.   where (smaller, bigger) = partition (<=x) xs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement