def accept

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

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

52def accept(+hi: Nat, ok: Bool) -> Maybe<&2, Nat>:
53  match ok:
54    case True{}:
55      Some{hi}
56    case False{}:
57      None{}

Uses (3)

Used by (10)