Working with Contravariant Functors.
目錄
In category, a contravariant functor is not thing but a functor with reversed output. For example, given type a
, b
in category C
and a morphism f :: a -> b
, a functor CF
is a contravariant functor if CF f
has type as CF b -> CF a