fromOption()
fromOption<
E>(onNone): <A>(fa) =>Result<A,E>
Converts an Option to a Result.
Type Parametersโ
E: Eโ
The error type
Parametersโ
onNone: () => Eโ
Function to create error when Option is None
Returns: <A>(fa): Result<A, E>โ
A function that converts an Option to a Result
Sinceโ
2.0.0