match
match<
E,A,B>(cases): (data) =>B
Defined in: Core/Result.ts:150
Pattern matches on a Result, returning the result of the matching case.
Type Parameters
Section titled “Type Parameters”E
A
B
Parameters
Section titled “Parameters”(e) => B
(a) => B
Returns
Section titled “Returns”(
data):B
Parameters
Section titled “Parameters”Result<E, A>
Returns
Section titled “Returns”B