flat Map
inline fun <A, B, C> Either<A, B>.flatMap(f: (B) -> Either<A, C>): Either<A, C>
Content copied to clipboard
Binds the given function across Right.
Parameters
f
The function to bind across Right.
inline fun <A, B, D> Ior<A, B>.flatMap(SG: Semigroup<A>, f: (B) -> Ior<A, D>): Ior<A, D>
Content copied to clipboard
Binds the given function across Ior.Right.
Parameters
f
The function to bind across Ior.Right.
inline fun <A, B> <ERROR CLASS><A>.flatMap(transform: (A) -> <ERROR CLASS><B>): <ERROR CLASS><B>
Content copied to clipboard
Compose a transform operation on the success value A into B whilst flattening Result.
See also
map Catching
if you want run a function that catches and maps with (A) -> B