EitherComposeOps

zio.prelude.experimental.EitherComposeSyntax.EitherComposeOps
implicit class EitherComposeOps[A, C, =>:[_, _]](a2b: A =>: C)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def fromEither[B, :+:[_, _]](implicit eitherCompose: Aux[=>:, :+:]): (=> B =>: C) => (A :+: B) =>: C

Composes A -> C with B -> C to form A or B -> C.

Composes A -> C with B -> C to form A or B -> C.

Attributes

def |||[B, :+:[_, _]](implicit eitherCompose: Aux[=>:, :+:]): (=> B =>: C) => (A :+: B) =>: C

A symbolic alias for fromEither. Composes A -> C with B -> C to form A or B -> C.

A symbolic alias for fromEither. Composes A -> C with B -> C to form A or B -> C.

Attributes