Aller au contenu principal

swap()

swap<E, A>(ma): TaskEither<A, E>

Swaps the Left and Right values.


Type Parameters

E: E

The error type.

A: A

The success type.


Parameters

ma: TaskEither<E, A>

The TaskEither to swap.


Returns: TaskEither<A, E>

The swapped TaskEither.


Since

2.0.0