Memory.wr: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/crypto/argon2/memory.bend as Memory Lines 29-35 of bend-collections@1.0.0.0/src/crypto/argon2/memory.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/crypto/argon2/memory.bend&start_line=29&end_line=35 import Base # The words stored from word i on. def wr(ws: List<&2, U32>, +i: Nat, a: Array) -> Array: match ws: case Nil{}: a case w <> rest: wr(rest, Nat.add(i, 1n), Array.set(U32, a, U32.from_nat(i), w)) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array.set https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.from_nat