zio.prelude.coherent.CovariantIdentityBoth
See theCovariantIdentityBoth companion object
trait CovariantIdentityBoth[F[_]] extends Covariant[F], IdentityBoth[F]
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait IdentityBoth[F]trait AssociativeBoth[F]trait Covariant[F]trait Invariant[F]class Objecttrait Matchableclass AnyShow all
- Self type
Members list
Value members
Concrete methods
Inherited methods
The identity for combining two values of types F[A] and F[B] to produce an F[(A, B)].
The identity for combining two values of types F[A] and F[B] to produce an F[(A, B)].
Attributes
- Inherited from:
- IdentityBoth
Combines two values of types F[A] and F[B] to produce an F[(A, B)].
Combines two values of types F[A] and F[B] to produce an F[(A, B)].
Attributes
- Inherited from:
- AssociativeBoth
final def compose[G[_]](implicit g: Contravariant[G]): Contravariant[{ type lambda = [A] =>> F[G[A]]; }#<none>]
Compose covariant and contravariant functors.
Compose two covariant functors.
Compose two invariant functors.
def compositionLaw[A, B, C](fa: F[A], f: Equivalence[A, B], g: Equivalence[B, C])(implicit equal: Equal[F[C]]): Boolean
Attributes
- Inherited from:
- Invariant
Attributes
- Inherited from:
- Invariant
Attributes
- Inherited from:
- Covariant
Lift a function from A to B to a function from F[A] to F[B].
In this article