def ok
import bend-collections-laws-math@1.0.0.0/src/math/generic.bend as Genericimport Base
import bend-collections-laws-math@1.0.0.0/src/math/num.bend as N
29def ok(-T: Data, m: Maybe<&2, T>) -> Result<&2, &2, N.NumError, T>:
30 match m:
31 case None{}:
32 Fail{N.Overflow{}}
33 case Some{x}:
34 Done{x}
Uses (3)
Used by (26)
- bend-collections-laws-math@1.0.0.0/src/math/generic:pow
- bend-collections-laws-math@1.0.0.0/src/math/generic:perm_big
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int:okfits
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u64int:okfits
- bend-collections-laws-math@1.0.0.0/src/math/generic:lcm_ok
- …