Created
June 8, 2015 03:30
-
-
Save dsernst/9f203700583b0f281551 to your computer and use it in GitHub Desktop.
@nsluss shows me how to compile my first Haskell program
This file contains hidden or 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 :: (Ord a) => [a] -> [a] | |
| qs [] = [] | |
| qs (x:xs) = qs (lessThan x xs) ++ [x] ++ qs (greaterThan x xs) | |
| where lessThan val ys = [y | y <- ys, val >= y] | |
| greaterThan val ys = [y | y <- ys, val < y] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment