trait Monad2[F[+_, +_]] extends Applicative2[F]
- Alphabetic
- By Inheritance
- Monad2
- Applicative2
- Functor2
- RootBifunctor
- Root
- PredefinedHelper
- DivergenceHelper
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type Divergence = Nondivergent
- Definition Classes
- DivergenceHelper
- type IsPredefined = NotPredefined
- Definition Classes
- PredefinedHelper
Abstract Value Members
- abstract def flatMap[E, A, B](r: F[E, A])(f: (A) => F[E, B]): F[E, B]
- abstract def pure[A](a: A): F[Nothing, A]
- Definition Classes
- Applicative2
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def *>[E, A, B](f: F[E, A], next: => F[E, B]): F[E, B]
execute two operations in order, return result of second operation
execute two operations in order, return result of second operation
- Definition Classes
- Monad2 → Applicative2
- def <*[E, A, B](f: F[E, A], next: => F[E, B]): F[E, A]
execute two operations in order, same as
*>
, but return result of first operationexecute two operations in order, same as
*>
, but return result of first operation- Definition Classes
- Monad2 → Applicative2
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def as[E, A, B](r: F[E, A])(v: => B): F[E, B]
- Definition Classes
- Functor2
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def collect[E, A, B](l: Iterable[A])(f: (A) => F[E, Option[B]]): F[E, List[B]]
- Definition Classes
- Applicative2
- def collectFirst[E, A, B](l: Iterable[A])(f: (A) => F[E, Option[B]]): F[E, Option[B]]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def filter[E, A](l: Iterable[A])(f: (A) => F[E, Boolean]): F[E, List[A]]
- Definition Classes
- Applicative2
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def find[E, A](l: Iterable[A])(f: (A) => F[E, Boolean]): F[E, Option[A]]
- def flatSequence[E, A](l: Iterable[F[E, Iterable[A]]]): F[E, List[A]]
- Definition Classes
- Applicative2
- def flatTraverse[E, A, B](l: Iterable[A])(f: (A) => F[E, Iterable[B]]): F[E, List[B]]
- Definition Classes
- Applicative2
- def flatten[E, A](r: F[E, F[E, A]]): F[E, A]
- def foldLeft[E, A, AC](l: Iterable[A])(z: AC)(f: (AC, A) => F[E, AC]): F[E, AC]
- final def forever[E, A](r: F[E, A]): F[E, Nothing]
- Definition Classes
- Applicative2
- Annotations
- @inline()
- def fromOptionF[E, A](fallbackOnNone: => F[E, A], r: F[E, Option[A]]): F[E, A]
Extracts the optional value, or executes the
fallbackOnNone
effect - def fromOptionOr[E, A](valueOnNone: => A, r: F[E, Option[A]]): F[E, A]
Extracts the optional value, or returns the given
valueOnNone
valueExtracts the optional value, or returns the given
valueOnNone
value- Definition Classes
- Functor2
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def ifThenElse[E, E1, A](cond: F[E, Boolean])(ifTrue: => F[E1, A], ifFalse: => F[E1, A])(implicit ev: <:<[E, E1]): F[E1, A]
- Annotations
- @inline()
- final def ifThenElse[E, A](cond: Boolean)(ifTrue: => F[E, A], ifFalse: => F[E, A]): F[E, A]
- Definition Classes
- Applicative2
- Annotations
- @inline()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def iterateUntil[E, A](r: F[E, A])(p: (A) => Boolean): F[E, A]
Execute an action repeatedly until its result satisfies the given predicate and return that result, discarding all others.
- def iterateUntilF[E, A](init: A)(f: (A) => F[E, A])(p: (A) => Boolean): F[E, A]
Apply an effectful function iteratively until its result satisfies the given predicate and return that result.
- def iterateWhile[E, A](r: F[E, A])(p: (A) => Boolean): F[E, A]
Execute an action repeatedly until its result fails to satisfy the given predicate and return that result, discarding all others.
- def iterateWhileF[E, A](init: A)(f: (A) => F[E, A])(p: (A) => Boolean): F[E, A]
Apply an effectful function iteratively until its result fails to satisfy the given predicate and return that result.
- def map[E, A, B](r: F[E, A])(f: (A) => B): F[E, B]
- def map2[E, A, B, C](r1: F[E, A], r2: => F[E, B])(f: (A, B) => C): F[E, C]
execute two operations in order, map their results
execute two operations in order, map their results
- Definition Classes
- Monad2 → Applicative2
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def sequence[E, A](l: Iterable[F[E, A]]): F[E, List[A]]
- Definition Classes
- Applicative2
- def sequence_[E](l: Iterable[F[E, Unit]]): F[E, Unit]
- Definition Classes
- Applicative2
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tailRecM[E, A, B](a: A)(f: (A) => F[E, Either[A, B]]): F[E, B]
- def tap[E, A](r: F[E, A], f: (A) => F[E, Unit]): F[E, A]
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def traverse[E, A, B](o: Option[A])(f: (A) => F[E, B]): F[E, Option[B]]
- Definition Classes
- Applicative2
- Annotations
- @inline()
- def traverse[E, A, B](l: Iterable[A])(f: (A) => F[E, B]): F[E, List[B]]
- Definition Classes
- Applicative2
- def traverse_[E, A](l: Iterable[A])(f: (A) => F[E, Unit]): F[E, Unit]
- Definition Classes
- Applicative2
- def unit: F[Nothing, Unit]
- Definition Classes
- Applicative2
- final def unless[E, E1](cond: F[E, Boolean])(ifFalse: => F[E1, Unit])(implicit ev: <:<[E, E1]): F[E1, Unit]
- Annotations
- @inline()
- final def unless[E](cond: Boolean)(ifFalse: => F[E, Unit]): F[E, Unit]
- Definition Classes
- Applicative2
- Annotations
- @inline()
- def void[E, A](r: F[E, A]): F[E, Unit]
- Definition Classes
- Functor2
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def when[E, E1](cond: F[E, Boolean])(ifTrue: => F[E1, Unit])(implicit ev: <:<[E, E1]): F[E1, Unit]
- Annotations
- @inline()
- final def when[E](cond: Boolean)(ifTrue: => F[E, Unit]): F[E, Unit]
- Definition Classes
- Applicative2
- Annotations
- @inline()
- final def widen[E, A, A1](r: F[E, A])(implicit ev: <:<[A, A1]): F[E, A1]
- Definition Classes
- Functor2
- Annotations
- @inline()