getRight method

Option<R> getRight()

Extract the value from Right in a Option.

If the Either is Left, return None.

Same as toOption.

Implementation

Option<R> getRight() => toOption();