Const
Result constant for 0. Can be used anywhere due to immutability.
0
1.3.0
function count(): Result<number, Error> { return RESULT_ZERO;}const result: Result<number, string> = RESULT_ZERO;const value: number = RESULT_ZERO.intoOk(); // Safe extraction Copy
function count(): Result<number, Error> { return RESULT_ZERO;}const result: Result<number, string> = RESULT_ZERO;const value: number = RESULT_ZERO.intoOk(); // Safe extraction
Result constant for
0. Can be used anywhere due to immutability.