def hit
import bend-collections-laws-math@1.0.0.0/spec/math/random/rand.bend as Randimport Base
77def hit(m: Maybe<&2, Nat>, +k: Nat) -> Nat:
78 match m:
79 case None{}:
80 0n
81 case Some{v}:
82 b2n(Nat.is_eq(v, k))
Uses (4)
Used by (5)
- bend-collections-laws-math@1.0.0.0/proofs/math/random/lemire:hit_acc
- bend-collections-laws-math@1.0.0.0/spec/math/random/rand:count
- bend-collections-laws-math@1.0.0.0/proofs/math/random/lemire:count_mask
- bend-collections-laws-math@1.0.0.0/proofs/math/random/lemire:sum_lemire
- bend-collections-laws-math@1.0.0.0/proofs/math/random/lemire:term