Quick notes on functors
Functors
A functor is a design pattern that allows us to apply a function to a contextualized (wrapped) type. This is accomplished by implementing the map
function:
fmap :: (a -> b) -> f a -> f b
A functor is a design pattern that allows us to apply a function to a contextualized (wrapped) type. This is accomplished by implementing the map
function:
fmap :: (a -> b) -> f a -> f b