arrow-core-data / arrow.core / flatMap

flatMap

fun <A, B, C> <ERROR CLASS><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.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
<