Chacha8rand.put: def of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/spec/math/random/chacha8rand.bend as Chacha8rand Lines 45-52 of bend-collections-laws-crypto@1.0.0.0/spec/math/random/chacha8rand.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/spec/math/random/chacha8rand.bend&start_line=45&end_line=52 import Base def put(xs: List<&2, U32>, i: Nat, y: U32) -> List<&2, U32>: match xs i: case Nil{} _: Nil{} case Con{x, rest} 0n: Con{y, rest} case Con{x, rest} 1n+p: Con{x, put(rest, p, y)} Uses (3): 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=U32