def bit
import bend-collections-laws-math@1.0.0.0/spec/lib/common.bend as Commonimport Base
36def bit(n: Nat) -> Nat:
37 match n:
38 case 0n:
39 0n
40 case 1n:
41 1n
42 case 2n+q:
43 bit(q)
Uses (1)
Used by (61)
- bend-collections-laws-math@1.0.0.0/spec/lib/common:low
- bend-collections-laws-math@1.0.0.0/spec/math/random/rand:and_bits
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/width:low_high
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/width:hb
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/width:bit_dbl
- …