DEV Community

Discussion on: Getting started with fp-ts: Functor

Collapse
 
muzietto profile image
Marco Faustinelli

First time I see a map :: (m a, a -> b) -> m b. How do you relate it to lift precisely?

I always saw map :: (a -> b) -> m a -> m b. Basically, the canonical map is "your" map curried.

What is the advantage of using map with your types? How does it help understand function composition?