A Lightning-Quick Glance at Haskell

I’ve heard Haskell mentioned a couple of times now and (having far better things to do with my time) decided to look into it briefly just now.

It’s a purely functional language as opposed to an imperative one which leads to very succinct code for certain domains. For example, a quick sort in Haskell could be written as follows:

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

Definitely something I’d like to look at in more depth when I have some time. Now back to what I should have been doing in the first place.

Leave a Reply