arrow-core / arrow.core.extensions / EitherMonad

EitherMonad

interface ~~EitherMonad~~<L> : Monad<EitherPartialOf<L>>, EitherApplicative<L> Deprecated: Monad typeclass is deprecated and will be removed in 0.13.0. Use concrete methods on Either

Properties

fx open val fx: MonadFx<EitherPartialOf<L>>

Functions

ap open fun <A, B> EitherOf<L, A>.ap(ff: EitherOf<L, (A) -> B>): Either<L, B>
flatMap open fun <A, B> EitherOf<L, A>.flatMap(f: (A) -> EitherOf<L, B>): Either<L, B>
map open fun <A, B> EitherOf<L, A>.map(f: (A) -> B): Either<L, B>
tailRecM open fun <A, B> tailRecM(a: A, f: (A) -> EitherOf<L, Either<A, B>>): Either<L, B>

Inheritors

EitherMonadError interface ~~EitherMonadError~~<L> : MonadError<EitherPartialOf<L>, L>, EitherApplicativeError<L>, EitherMonad<L>

Do you like Arrow?

Arrow Org
<