One recurring complaint is that nobody talks about code on /prog/. So everyone write go and write some code, any code, that does something, anything, and post it. A small explanation wouldn't go amiss either.
Name:
Anonymous2011-03-14 3:11
>>103
I don't think that actually works in the real world.
WHAT IS WRONG WITH THIS PICTURE:
--Sort a list of elements from lowest to highest
sortList :: Ord a => [a] -> [a]
sortList [] = []
sortList (x:xs) = sortList smaller ++ [x] ++ sortList larger
where
smaller = [y | y <- xs, y < x] -- Elements that are smaller than first element, x
larger = [y | y <- xs, y >= x] -- Elements that are larger than first element, x