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