LazyEither

sealed abstract
class LazyEither[A, B]

scala.Either, but with a value by name.

Companion
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def ?[X](left: => X, right: => X): X

Catamorphism of the constructor chosen.

Catamorphism of the constructor chosen.

def ap[C](f: => LazyEither[A, B => C]): LazyEither[A, C]
def bimap[C, D](f: (=> A) => C, g: (=> B) => D): LazyEither[C, D]
def exists(f: (=> B) => Boolean): Boolean
def flatMap[AA >: A, C](f: (=> B) => LazyEither[AA, C]): LazyEither[AA, C]
def fold[X](left: (=> A) => X, right: (=> B) => X): X
def foldRight[Z](z: => Z)(f: (B, => Z) => Z): Z
def forall(f: (=> B) => Boolean): Boolean
def foreach(f: (=> B) => Unit): Unit
def getOrElse[BB >: B](default: => BB): BB
def isLeft: Boolean
def isRight: Boolean
def left: LeftProjection[A, B]
def leftMap[C](f: (=> A) => C): LazyEither[C, B]

Run the given function on the left value.

Run the given function on the left value.

def map[C](f: (=> B) => C): LazyEither[A, C]
def orElse(x: => LazyEither[A, B]): LazyEither[A, B]
def swap: LazyEither[B, A]
def toDisjunction: A \/ B
def toEither: Either[A, B]
def toIList[BB >: B]: IList[BB]
def toList: List[B]
def toMaybe[BB >: B]: Maybe[BB]
def toOption: Option[B]
def toStream: Stream[B]
def traverse[G[_] : Applicative, C](f: B => G[C]): G[LazyEither[A, C]]

Deprecated methods

@deprecated("Use `toDisjunction`", "7.3.0")
def disjunction: A \/ B
Deprecated