Content deleted Content added
m Disambiguate Optimization to Optimization (computer science) using popups |
mNo edit summary |
||
Line 23:
==Haskell's Functor class==
In the [[Haskell (programming language)|Haskell programming language]], map is generalized to a [[Type polymorphism|polymorphic]] function called fmap using the Functor [[type class]]. For every Functor instance, fmap must be defined such that it obeys the Functor laws:
* <code>fmap id = id
* <code>fmap (f . g) = fmap f . fmap g
==References==
|