def scale

bend-collections@1.0.0.0 · src/crypto/poly1305/limbs.bend:32

import bend-collections@1.0.0.0/src/crypto/poly1305/limbs.bend as Limbs
import Base

32# Every limb times c, no carries.
33def scale(+c: U32, a: List<&2, U32>) -> List<&2, U32>:
34  match a:
35    case Nil{}: Nil{}
36    case x <> t: U32.mul(x, c) <> scale(c, t)

Uses (3)

Used by (2)