[Haskell-cafe] Language extensions
Andrew Coppin
andrewcoppin at btinternet.com
Tue May 29 16:43:03 EDT 2007
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!
More information about the Haskell-Cafe
mailing list