Act.guard: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/act.bend as Act Lines 43-49 of cswap-bend-cli@0.1.0.0/act.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/act.bend&start_line=43&end_line=49 import Base # Fail with (code, msg) unless `ok`. def guard(ok: Bool, code: U32, msg: String) -> of(Unit): match ok: case True{}: pure(Unit, Unit{}) case False{}: fail(Unit, code, msg) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/act.bend&name=fail https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/act.bend&name=of https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/act.bend&name=pure