def at
import bend-collections-laws-crypto@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)
Uses (3)
Used by (5)
- bend-collections-laws-crypto@1.0.0.0/src/crypto/chacha/chacha20:key_words
- bend-collections-laws-crypto@1.0.0.0/src/crypto/chacha/chacha20:nonce_words
- bend-collections-laws-crypto@1.0.0.0/src/crypto/chacha/chacha20:hstate
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/stream:hnonce_eq
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/stream:hstate_eq