[Haskell-cafe] Mo' comprehensions

Neil Mitchell ndmitchell at gmail.com
Sat Dec 30 11:39:59 EST 2006


Hi

> I was solving some programming puzzles today[1], and found myself
> pining for Map comprehensions.

[ ... (key,val) <- fromList map, ... ]

It isn't really that much more than a straight comprehension would be on a map.

By default should a map comprehension let you inspect the values, or
the keys, or both?

Thanks

Neil


More information about the Haskell-Cafe mailing list