Created
February 17, 2017 05:43
-
-
Save otofu-square/213ef4a9ff9b5234a3362c7fbda71177 to your computer and use it in GitHub Desktop.
Haskell sample code
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 (p:xs) = qsort lt ++ [p] ++ qsort gteq | |
where lt = [x | x <- xs, x < p] | |
gteq = [x | x <- xs, x >= p] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment