Aller au contenu principal

flatMap()

flatMap<A, E2, B>(f): <E1>(ma) => TaskEither<E2 | E1, B>

Chains a function that returns a TaskEither over the Right value.


Type Parameters

A: A

The input type.

E2: E2

The new error type.

B: B

The output type.


Parameters

f: (a) => TaskEither<E2, B>

The chaining function.


Returns: <E1>(ma): TaskEither<E2 | E1, B>

A function that transforms the TaskEither.


Since

2.0.0