CommutativeEitherContravariantOps

zio.prelude.CommutativeEitherSyntax.CommutativeEitherContravariantOps
implicit class CommutativeEitherContravariantOps[F[_], A](fa: => F[A])

Provides infix syntax for commutative operations for contravariant types.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def eitherWithPar[B, C](fb: => F[B])(f: C => Either[A, B])(implicit either: CommutativeEither[F], contravariant: Contravariant[F]): F[C]

Combines two values of types F[A] and F[B] to produce an F[Either[A, B]] and then contramaps the result with the specified function.

Combines two values of types F[A] and F[B] to produce an F[Either[A, B]] and then contramaps the result with the specified function.

Attributes