def accept
import bend-collections-laws-crypto@1.0.0.0/spec/math/random/rand.bend as Randimport Base
52def accept(+hi: Nat, ok: Bool) -> Maybe<&2, Nat>:
53 match ok:
54 case True{}:
55 Some{hi}
56 case False{}:
57 None{}
Uses (3)
Used by (10)
- bend-collections-laws-crypto@1.0.0.0/proofs/math/random/lemire:hit_acc
- bend-collections-laws-crypto@1.0.0.0/spec/math/random/rand:lemire
- bend-collections-laws-crypto@1.0.0.0/proofs/math/random/uint64n:hd_of
- bend-collections-laws-crypto@1.0.0.0/proofs/math/random/uint64n:dec
- bend-collections-laws-crypto@1.0.0.0/proofs/math/random/below:acc_lt
- …