swap method

Either<R, L> swap()

Swap Left and Right

Implementation

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