Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Data.List
- quickSort [] = []
- quickSort (x:xs) = (quickSort smaller) ++ [x] ++ (quickSort bigger)
- where (smaller, bigger) = partition (<=x) xs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement