def when
import yaml-for-bend@0.1.1.0/yaml11.bend as Yaml11import 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{})
import yaml-for-bend@0.1.1.0/yaml11.bend as Yaml11import 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{})