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