EitherAsyncShift

cps.runtime.util.EitherAsyncShift
class EitherAsyncShift[A, B] extends AsyncShift[Either[A, B]]

Attributes

Source
EitherAsyncShift.scala
Graph
Supertypes
trait AsyncShift[Either[A, B]]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def exists[F[_]](o: Either[A, B], m: CpsMonad[F])(p: B => F[Boolean]): F[Boolean]

Attributes

Source
EitherAsyncShift.scala
def filterOrElse[F[_], A1 >: A](o: Either[A, B], m: CpsMonad[F])(p: B => F[Boolean], zero: () => F[A1]): F[Either[A1, B]]

Attributes

Source
EitherAsyncShift.scala
def flatMap[F[_], A1 >: A, B1](o: Either[A, B], m: CpsMonad[F])(f: B => F[Either[A1, B1]]): F[Either[A1, B1]]

Attributes

Source
EitherAsyncShift.scala
def fold[F[_], C](o: Either[A, B], m: CpsMonad[F])(fa: A => F[C], fb: B => F[C]): F[C]

Attributes

Source
EitherAsyncShift.scala
def forall[F[_]](o: Either[A, B], m: CpsMonad[F])(p: B => F[Boolean]): F[Boolean]

Attributes

Source
EitherAsyncShift.scala
def foreach[F[_], U](o: Either[A, B], m: CpsMonad[F])(f: B => F[U]): F[Unit]

Attributes

Source
EitherAsyncShift.scala
def getOrElse[F[_], B1 >: B](o: Either[A, B], m: CpsMonad[F])(default: () => F[B1]): F[B1]

Attributes

Source
EitherAsyncShift.scala
def map[F[_], B1](o: Either[A, B], m: CpsMonad[F])(f: B => F[B1]): F[Either[A, B1]]

Attributes

Source
EitherAsyncShift.scala
def orElse[F[_], A1 >: A, B1 >: B](o: Either[A, B], m: CpsMonad[F])(default: () => F[Either[A1, B1]]): F[Either[A1, B1]]

Attributes

Source
EitherAsyncShift.scala