def length
import bend-collections-laws-crypto@1.0.0.0/spec/math/random/chacha8rand.bend as Chacha8randimport Base
227def length(bs: List<&2, U32>) -> Nat:
228 match bs:
229 case Nil{}:
230 0n
231 case Con{b, rest}:
232 1n+length(rest)
Uses (3)
Used by (4)
- bend-collections-laws-crypto@1.0.0.0/spec/math/random/chacha8rand:key_of_seed
- bend-collections-laws-crypto@1.0.0.0/proofs/math/random/chacha8/seed:seeded
- bend-collections-laws-crypto@1.0.0.0/proofs/math/random/chacha8/seed:seeded_c
- bend-collections-laws-crypto@1.0.0.0/proofs/math/random/chacha8/seed:seeded_ok