fold
fold<
E,A,B>(onErr,onOk): (data) =>B
Defined in: Core/Result.ts:132
Extracts the value from an Result by providing handlers for both cases.
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