def guard

bend-schema-lib@0.4.1.0 · core.bend:964

import bend-schema-lib@0.4.1.0/core.bend as Core
import Base

964def guard(b: Bool, m: Maybe<&2, Why>) -> Maybe<&2, Why>:
965  match b:
966    case True{}:
967      m
968    case False{}:
969      None{}

Uses (3)

Used by (8)