toEither<E>(onNone): <A>(fa) => object
Converts an Option to an Either.
Type Parameters
E: E
The error type.
Parameters
onNone: () => E
Function to create error for None.
Returns: <A>(fa): object
A function that converts the Option.
Since
2.0.0