def true_unit

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

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

1587def true_unit(b: Bool) -> Maybe<&2, Unit>:
1588  match b:
1589    case True{}:
1590      Some{Unit{}}
1591    case False{}:
1592      None{}

Uses (3)

Used by (1)