def ms_a

bend-collections-laws-math@1.0.0.0 · proofs/math/typed/u32int.bend:1005

import bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int.bend as U32int
import Base
import bend-collections-laws-math@1.0.0.0/src/math/num.bend as NM
import bend-collections-laws-math@1.0.0.0/src/math/instances.bend as I

1005def ms_a(bit: Bool, +a: U32, +b: U32) -> U32:
1006  match bit:
1007    case True{}:
1008      I.u32_op(NM.Mul{a, b})
1009    case False{}:
1010      a

Uses (4)

Used by (3)