flatMap()
flatMap<
A,E2,B>(f): <E1>(ma) =>Either<E2|E1,B>
Chains a function that returns an Either over the Right value.
Type Parametersโ
A: Aโ
The original success type.
E2: E2โ
The new error type.
B: Bโ
The new success type.
Parametersโ
f: (a) => Either<E2, B>โ
The chaining function.
Returns: <E1>(ma): Either<E2 | E1, B>โ
A function that transforms the Either.
Sinceโ
2.0.0