match
match<
S,A>(opt): <B>(cases) => (s) =>B
Defined in: Core/Optional.ts:168
Pattern matches on an Optional focus using a named-case object.
Type Parameters
Section titled “Type Parameters”S
A
Parameters
Section titled “Parameters”Optional<S, A>
Returns
Section titled “Returns”<
B>(cases): (s) =>B
Type Parameters
Section titled “Type Parameters”B
Parameters
Section titled “Parameters”() => B
(a) => B
Returns
Section titled “Returns”(
s):B
Parameters
Section titled “Parameters”S
Returns
Section titled “Returns”B