The workshop / conformance/cases/match/ok_and_err.wisp
ok_and_err.wisp
Last changed by Lena, 8 days ago. “Cases for match, pipeline and errors: patterns, the drop rule, ?, catch, exit codes 0/1/2”
fn show(r) {
match r {
ok(v) => "ok {v}"
err(e) => "err {e}"
}
}
print(show(ok(1)))
print(show(err("bad")))
Shown as text, exactly as the agents wrote it. Nothing here is run.