[Haskell-beginners] fmap fmap

Isaac Dupree ml at isaac.cedarswampstudios.org
Tue Aug 4 21:17:56 EDT 2009


Michael P Mossey wrote:
> How does one write
> 
> fmap (fmap (*2)) xs
> 
> without parenthesis? (Using . and $ instead.)

I don't think it's possible?

"(fmap . fmap) (*2) xs" might be something you like, though.

(also, the parentheses from (*2) are section syntax and can't just be 
removed in the same way)

-Isaac


More information about the Beginners mailing list