fold
fold<
E,A,B>(onErr,onOk,onNil): (outcome) =>B
Defined in: Core/Op.ts:590
Eliminates an Outcome with positional handlers.
Order: onErr, onOk, onNil — mirrors Result.fold for the first two.
Type Parameters
Section titled “Type Parameters”E
A
B
Parameters
Section titled “Parameters”(e) => B
(a) => B
() => B
Returns
Section titled “Returns”(
outcome):B
Parameters
Section titled “Parameters”outcome
Section titled “outcome”Outcome<E, A>
Returns
Section titled “Returns”B