Re:Functors and Monads for People Who Have Read Too Many "Tu...
by tome on Friday August 02, 2024 @03:03PM
(#41141607)
> So is it an interface or a function? Is it one and the same in Haskell? I am utterly confused.
Functor is an interface. It has one member: a function called fmap. To specify how a type meets the Functor interface you have to define the function fmap for that type.
Functor is an interface. It has one member: a function called fmap. To specify how a type meets the Functor interface you have to define the function fmap for that type.