CommutativeEitherCovariantOps

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

Provides infix syntax for commutative operations for covariant types.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def orElsePar(fa2: => F[A])(implicit either: CommutativeEither[F], covariant: Covariant[F]): F[A]

Combines two values of types F[A] and F[A] to produce an F[Either[A, A]] and then merges the result.

Combines two values of types F[A] and F[A] to produce an F[Either[A, A]] and then merges the result.

Attributes