def when

yaml-for-bend@0.1.1.0 · yaml11.bend:24

import yaml-for-bend@0.1.1.0/yaml11.bend as Yaml11
import Base

24def when(-A: Type, hit: Bool, yes: Unit -> A, no: Unit -> A) -> A:
25  match hit:
26    case True{}:
27      yes(Unit{})
28    case False{}:
29      no(Unit{})

Uses (2)

Used by (5)