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