def when
import yaml-for-bend@0.1.1.0/emit.bend as Emitimport Base
25def when(-A: Type, hit: Bool, yes: Unit -> A, no: Unit -> A) -> A:
26 match hit:
27 case True{}:
28 yes(Unit{})
29 case False{}:
30 no(Unit{})
import yaml-for-bend@0.1.1.0/emit.bend as Emitimport Base
25def when(-A: Type, hit: Bool, yes: Unit -> A, no: Unit -> A) -> A:
26 match hit:
27 case True{}:
28 yes(Unit{})
29 case False{}:
30 no(Unit{})