def unwrap

bend-collections-laws-math@1.0.0.0 · proofs/math/natural/inverse.bend:122

import bend-collections-laws-math@1.0.0.0/proofs/math/natural/inverse.bend as Inverse
import Base
import bend-collections-laws-math@1.0.0.0/src/math/natural.bend as M

122def unwrap(r: Result<&2, &2, M.MathError, Nat>) -> Nat:
123  match r:
124    case Done{v}:
125      v
126    case Fail{e}:
127      0n

Uses (3)

Used by (1)