def at
import bend-collections@1.0.0.0/src/crypto/chacha/chacha20.bend as Chacha20import Base
35def at(xs: List<&2, U32>, i: Nat) -> U32:
36 match xs i:
37 case Nil{} _: 0
38 case x <> rest 0n: x
39 case x <> rest 1n+p: at(rest, p)
import bend-collections@1.0.0.0/src/crypto/chacha/chacha20.bend as Chacha20import Base
35def at(xs: List<&2, U32>, i: Nat) -> U32:
36 match xs i:
37 case Nil{} _: 0
38 case x <> rest 0n: x
39 case x <> rest 1n+p: at(rest, p)