def b2n

bend-collections-laws-math@1.0.0.0 · spec/math/random/rand.bend:31

import bend-collections-laws-math@1.0.0.0/spec/math/random/rand.bend as Rand
import Base

31def b2n(b: Bool) -> Nat:
32  match b:
33    case True{}:
34      1n
35    case False{}:
36      0n

Uses (2)

Used by (9)