eru
`{val,err}` + `er` records (`k`,`m`).
Load with: use eru
Quick example
use eru
result = ermk(10, "value")
prn(result)
Functions
Functions
ermk(k, m)
Creates a new instance. Takes k, m.
erat(pth, sl, sc, k, m)
Performs the operation. Takes pth, sl, sc, k, m.
eris(x)
Returns true/false based on a condition. Takes x.
ertxt(x)
Performs the operation. Takes x.
rsok(v)
Performs the operation. Takes v.
rsbad(e)
Adds an item. Takes e.
rsokp(r)
Performs the operation. Takes r.
rsval(r)
Performs the operation. Takes r.
rser(r)
Performs the operation. Takes r.
rsmap(r, f)
Performs the operation. Takes r, f.
rsunw(r)
Performs the operation. Takes r.
rsunw(r, ctx)
Performs the operation. Takes r, ctx.
rsfla(r, f)
Performs the operation. Takes r, f.
rsand(r, f)
Performs the operation. Takes r, f.
rsore(r, fb)
Performs the operation. Takes r, fb.
rsfro(t)
Performs the operation. Takes t.
rspar(rs_list)
Performs the operation. Takes rs_list.
rsseq(rs_list)
Performs the operation. Takes rs_list.
rstra(xs, f)
Performs the operation. Takes xs, f.
erban(k, m)
Performs the operation. Takes k, m.
Notes
- Error utilities - structured errors, error chains, pretty printing.