def res_opt
import bend-collections-laws-math@1.0.0.0/src/math/fixed.bend as Fixedimport Base
import bend-collections-laws-math@1.0.0.0/src/math/num.bend as N
50def res_opt(-T: Data, r: Result<&2, &2, N.NumError, T>) -> Maybe<&2, T>:
51 match r:
52 case Done{x}:
53 Some{x}
54 case Fail{e}:
55 None{}
Uses (3)
Used by (6)
- bend-collections-laws-math@1.0.0.0/src/math/fixed:u32_checked_pow
- bend-collections-laws-math@1.0.0.0/src/math/fixed:u64_checked_pow
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/fix32:cpow
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/fix32:spow
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/fix64:cpow
- …