def pack
import bend-collections@1.0.0.0/src/crypto/secp256k1/ecdsa.bend as Ecdsaimport Base
290def pack(ws: List<&2, U32>, +i: U32, a: Array<U32>) -> Array<U32>:
291 match ws:
292 case Nil{}: a
293 case w <> t: pack(t, U32.inc(i), Array.set(U32, a, i, w))