Created
December 24, 2014 20:36
-
-
Save vinipsmaker/1befb67fac70e3483256 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sort :: (Ord a) => [a] -> [a] | |
sort [] = [] | |
sort (pivot:rest) = sort [y | y <- rest, y < pivot] | |
++ [pivot] ++ | |
sort [y | y <- rest, y >= pivot] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment