Chacha.get: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/spec/crypto/chacha.bend as Chacha Lines 18-23 of bend-collections@1.0.0.0/spec/crypto/chacha.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/spec/crypto/chacha.bend&start_line=18&end_line=23 import Base # Element i of a list, 0 past its end. def get(xs: List<&2, U32>, i: Nat) -> U32: match xs i: case Nil{} _: 0 case x <> rest 0n: x case x <> rest 1n+p: get(rest, p) 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