def pack
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/secp256k1/ecdsa.bend as Ecdsaimport Base
257def pack(ws: List<&2, U32>, +i: U32, a: Array<U32>) -> Array<U32>:
258 match ws:
259 case Nil{}: a
260 case w <> t: pack(t, U32.inc(i), Array.set(U32, a, i, w))