def ms_a

bend-collections-laws-math@1.0.0.0 · proofs/math/typed/u64int.bend:1006

import bend-collections-laws-math@1.0.0.0/proofs/math/typed/u64int.bend as U64int
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
import bend-collections-laws-math@1.0.0.0/src/math/u64.bend as WU

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

Uses (4)

Used by (3)