fromOption<E>(onNone): <A>(fa) => Either<E, A>
Creates an Either from an Option.
Type Parameters
E: E
The error type.
Parameters
onNone: () => E
Function to create error for None.
Returns: <A>(fa): Either<E, A>
A function that converts an Option to an Either.
Since
2.0.0