def rv32

bend-collections-laws-crypto@1.0.0.0 · spec/math/f64.bend:377

import bend-collections-laws-crypto@1.0.0.0/spec/math/f64.bend as F64
import Base
import bend-collections-laws-crypto@1.0.0.0/src/math/num.bend as N

377def rv32(r: Result<&2, &2, N.NumError, U32>) -> Result<&2, &2, N.NumError, Nat>:
378  match r:
379    case Fail{e}:
380      Fail{e}
381    case Done{u}:
382      Done{U32.to_nat(u)}

Uses (5)

Used by (1)