def below256
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/random.bend as Randomimport Base
67def below256(xs: List<&2, U32>) -> Bool:
68 match xs:
69 case Nil{}:
70 True{}
71 case Con{+x, rest}:
72 Bool.and(U32.is_lt(x, 256), below256(rest))
Uses (5)
Used by (7)
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/random/bytes:below_app
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/random:Random.bytes_lt
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/random/bytes:below_take
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/random/bytes:bytes_lt
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/random/bytes:flat_below
- …