def fill

bend-collections-laws-crypto@1.0.0.0 · spec/crypto/argon2/argon2.bend:63

import bend-collections-laws-crypto@1.0.0.0/spec/crypto/argon2/argon2.bend as Argon2
import Base

63def fill(ws: List<&2, U32>, +i: U32, a: Array<U32>) -> Array<U32>:
64  match ws:
65    case Nil{}:
66      a
67    case w <> rest:
68      fill(rest, U32.inc(i), Array.set(U32, a, i, w))

Uses (5)

Used by (3)