Monthly Archives: June 2007

Deducing code from types: filterM

The other day in #haskell a few people were trying to figure out how to generate the list of all sublists of a given list. Various people tried various kludgy things involving inits and tails and concatMap, none of which … Continue reading

Posted in haskell, learning | 2 Comments

Solving an arithmetic puzzle with Haskell

[EDIT: since this post still seems to get a good deal of traffic, I should note that (as you can see if you read the comments) the code I gave here is not quite correct. Still, it's interesting enough that … Continue reading

Posted in haskell, math, puzzle | 7 Comments