def cmul
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
58def cmul(~T: Data, ~op: N.Op<T> -> T, ~test: N.Test<T> -> Bool, +a: T, +b: T) -> Maybe<&2, T>:
59 fits(T, test(N.MulOver{a, b}), op(N.Mul{a, b}))
Uses (5)
Used by (8)
- bend-collections-laws-math@1.0.0.0/src/math/generic:prod_go
- bend-collections-laws-math@1.0.0.0/src/math/generic:lcm_ok
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int:cm
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int:cmul_rel
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int:pal
- …