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