Software Engineering discussion

11 views
Learn You a Haskell > Hello Recursion!

Comments Showing 1-2 of 2 (2 new)    post a comment »
dateUp arrow    newest »

message 1: by [deleted user] (new)

Here is an even more compact quicksort:

qsort [] = []
qsort (x:xs) = qsort (filter (< x) xs) ++ [x] ++ qsort (filter (>= x) xs)

I think that some of the Haskell advantages in compactness and readability (after a little learning curve) shine through with this example.


message 2: by Aleksander (new)

Aleksander Shtuk | 84 comments I think this example could be a good fit for language design discussions in this book.


back to top