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[AA >: A, C](f: => LazyEither[AA, B => C]): LazyEither[AA, C]
def bimap[C, D](f: (=> A) => C, g: (=> B) => D): LazyEither[C, D]
def disjunction: A \/ B
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[AA >: A, BB >: B](x: => LazyEither[AA, BB]): LazyEither[AA, BB]
def swap: LazyEither[B, A]
def toEither: Either[A, B]
def toList: List[B]
def toMaybe[BB >: B]: Maybe[BB]
def toOption: Option[B]
def toStream: Stream[B]
def traverse[G[_] : Applicative, AA >: A, C](f: B => G[C]): G[LazyEither[AA, C]]