Created
December 7, 2016 23:19
-
-
Save neodevelop/f8ccf9a162f9b751c39307b0cf3af01c 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
qsort [] = [] | |
qsort(x:xs) = qsort smaller ++ [x] ++ qsort larger | |
where | |
smaller = [ a | a <- xs, a <= x] | |
larger = [ b | b <- xs, b > x] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment