
29 May
2007
29 May
'07
8:43 p.m.
Henning Thielemann wrote:
On Sun, 27 May 2007, Andrew Coppin wrote:
Personally, I try to avoid ever using list comprehensions.
Me too. Successfully, I have to add.
But every now and then I discover an expression which is apparently not expressible without them - which is odd, considering they're only "sugar"...
Example?
Until I learned the trick of using lists as monads, I was utterly perplexed as to how to get a Cartesian product - or why there's no library function to do this! Thanks to the chapter on Logic Combinators, I've learned a trick or two about monadic list trickery... muhuhuhuhu!