[Haskell-cafe] Newb question about map and a list of lists

Brent Yorgey byorgey at gmail.com
Fri Sep 28 17:08:44 EDT 2007


> Just be careful to write:
>
> (map.map) read l
>
> or
>
> map.map $ read l


actually, map . map $ read l does not work, that's the same as (map . map)
(read l), whereas (map . map) read l is the same as ((map . map) read) l.
My guess is that Jules wrote that part while asleep. =)

-Brent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20070928/02cc3d43/attachment.htm


More information about the Haskell-Cafe mailing list