def b2n

bend-collections-laws-math@1.0.0.0 · spec/math/random/pcg.bend:22

import bend-collections-laws-math@1.0.0.0/spec/math/random/pcg.bend as Pcg
import Base

22def b2n(b: Bool) -> Nat:
23  match b:
24    case True{}:
25      1n
26    case False{}:
27      0n

Uses (2)

Used by (5)