Rand.b2n: def of bend-collections-laws-math@1.0.0.0 Import: import bend-collections-laws-math@1.0.0.0/spec/math/random/rand.bend as Rand Lines 31-36 of bend-collections-laws-math@1.0.0.0/spec/math/random/rand.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-math@1.0.0.0/spec/math/random/rand.bend&start_line=31&end_line=36 import Base def b2n(b: Bool) -> Nat: match b: case True{}: 1n case False{}: 0n Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat