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