Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quicksort' :: (Ord a) => [a] -> [a]
- quicksort' [] = []
- quicksort' (x:xs) =
- let smallerSorted = quicksort' (filter (<=x) xs)
- biggerSorted = quicksort' (filter (>x) xs)
- in smallerSorted ++ [x] ++ biggerSorted
Add Comment
Please, Sign In to add comment