The Gee-Whiz Monad (I)
 is really the gee-whiz monad. Haskell code that prints *all the five-number combinations of integers in [-5..5]:
mapM (\x->[x+i | i<-[-5..5]]) [1..5]
No, really, try it. This has to qualify as the “most surprisingly long output” line of code in all of computer programming.
Filed under: Uncategorized | 3 Comments