toLeft method

Either<A, A> toLeft(
  1. A caseNone
)

Return Left from Option

Implementation

Either<A, A> toLeft(A caseNone) =>
    fold(() => Left(caseNone), (A a) => Left(a));