arrow-core-data / arrow.core / flatMap

flatMap

inline fun <A, B, C> EitherOf<A, B>.flatMap(f: (B) -> Either<A, C>): Either<A, C>

Binds the given function across Either.Right.

Parameters

f - The function to bind across Either.Right.inline fun <A, B, D> Ior<A, B>.flatMap(SG: Semigroup<A>, f: (B) -> Ior<A, D>): Ior<A, D>

Binds the given function across Ior.Right.

Parameters

f - The function to bind across Ior.Right.

Do you like Arrow?

Arrow Org
<