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