swap method

  1. @override
Result<F, S> swap()
override

Swap the values contained inside the Success and Failure of this Result.

Implementation

@override
Result<F, S> swap() {
  return Failure(_success);
}