swap method

Future<Either<R, L>> swap()

Swap Left and Right

Implementation

Future<Either<R, L>> swap() =>
    this.fold<Either<R, L>>((left) => Right(left), (right) => Left(right));