fromOption()
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