Created
May 4, 2014 15:17
-
-
Save joaomilho/3e8941264f3fb9751ed7 to your computer and use it in GitHub Desktop.
Classical quicksort in haskell for didactic purposes
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
qs [] = [] | |
qs (x:xs) = qs (filter (<= x) xs) ++ [x] ++ qs (filter (> x) xs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment