def when
import yaml-for-bend@0.1.1.0/compose.bend as Composeimport Base
75def when(-A: Type, hit: Bool, yes: Unit -> A, no: Unit -> A) -> A:
76 match hit:
77 case True{}:
78 yes(Unit{})
79 case False{}:
80 no(Unit{})
import yaml-for-bend@0.1.1.0/compose.bend as Composeimport Base
75def when(-A: Type, hit: Bool, yes: Unit -> A, no: Unit -> A) -> A:
76 match hit:
77 case True{}:
78 yes(Unit{})
79 case False{}:
80 no(Unit{})