Contravariant functors. For example, functions provide a scalaz.Functor in their result type, but a scalaz.Contravariant for each argument type.
Note that the dual of a scalaz.Functor is just a scalaz.Functor itself.
Providing an instance of this is a useful alternative to marking a
type parameter with -
in Scala.
- See also
- Companion
- object
Type members
Classlikes
Inherited classlikes
Value members
Concrete methods
The composition of Contravariant F and G, [x]F[G[x]]
, is
covariant.
The composition of Contravariant F and G, [x]F[G[x]]
, is
covariant.
The composition of Contravariant F and Functor G, [x]F[G[x]]
,
is contravariant.
The composition of Contravariant F and Functor G, [x]F[G[x]]
,
is contravariant.
Inherited methods
Converts ma
to a value of type F[B]
using the provided bijection.
Converts ma
to a value of type F[B]
using the provided bijection.
- Inherited from
- InvariantFunctor
Converts ma
to a value of type F[B]
using the provided isomorphism.
Converts ma
to a value of type F[B]
using the provided isomorphism.
- Inherited from
- InvariantFunctor