Aller au contenu principal

orElse()

const orElse: <A>(that) => (fa) => Option<A> = alt

Alias for alt.

Returns an alternative Option if the first is None.


Type Parameters

A: A

The value type.


Parameters

that: () => Option<A>

Function to provide alternative Option.


Returns

A function that returns the alternative.


Since

2.0.0