toMaybe
toMaybe<
E,A>(outcome):Maybe<A>
Defined in: Core/Op.ts:692
Converts an Outcome to a Maybe. Ok becomes Some; Err and Nil become None.
Type Parameters
Section titled “Type Parameters”E
A
Parameters
Section titled “Parameters”outcome
Section titled “outcome”Outcome<E, A>
Returns
Section titled “Returns”Maybe<A>