swap method
Change this TaskEither from TaskEither<L, R>
to TaskEither<R, L>
.
Implementation
TaskEither<R, L> swap() =>
TaskEither(() async => (await run()).match(right, left));
Change this TaskEither from TaskEither<L, R>
to TaskEither<R, L>
.
TaskEither<R, L> swap() =>
TaskEither(() async => (await run()).match(right, left));