fromPredicate
fromPredicate<
A>(pred): (a) =>Maybe<A>
Defined in: Core/Maybe.ts:83
Creates a Maybe from a predicate applied to a value. Returns Some if the predicate passes, None otherwise.
Type Parameters
Section titled “Type Parameters”A
Parameters
Section titled “Parameters”(a) => boolean
Returns
Section titled “Returns”(a) => Maybe<A>