0.0.7 • Published 3 years ago
elfs v0.0.7
Elfs
Result
Begone you devilish try/catch! Welcome the all mighty Result<Ok, Err>!
create
const okResult = ok(1);
const errResult = err(2);check
const isResultOk = isOk(okResult);
const isResultErr = isErr(errResult);get
const okResultValue = getOk(okResult);
const errResultValue = getErr(errResult);