toRight method

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

Return Right from Option

Implementation

Either<A, A> toRight(A caseNone) =>
    fold(() => Right(caseNone), (A a) => Right(a));