Packages

c

zio.prelude.CommutativeEitherSyntax

CommutativeEitherContravariantOps

implicit class CommutativeEitherContravariantOps[F[-_], A] extends AnyRef

Provides infix syntax for commutative operations for contravariant types.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CommutativeEitherContravariantOps
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CommutativeEitherContravariantOps(fa: => F[A])

Value Members

  1. 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.