Yaml11.when: def of yaml-for-bend@0.1.1.0 Import: import yaml-for-bend@0.1.1.0/yaml11.bend as Yaml11 Lines 24-29 of yaml-for-bend@0.1.1.0/yaml11.bend: https://jend.leeeet.dev/read.txt?path=yaml-for-bend@0.1.1.0/yaml11.bend&start_line=24&end_line=29 import Base def when(-A: Type, hit: Bool, yes: Unit -> A, no: Unit -> A) -> A: match hit: case True{}: yes(Unit{}) case False{}: no(Unit{}) Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit