Http.when: def of gralha-http-core@0.1.0.0 Import: import gralha-http-core@0.1.0.0/http.bend as Http Lines 9-15 of gralha-http-core@0.1.0.0/http.bend: https://jend.leeeet.dev/read.txt?path=gralha-http-core@0.1.0.0/http.bend&start_line=9&end_line=15 import Base # One of two computations, run on c; only the chosen one runs. def when(-A: Type, c: Bool, yes: Unit -> A, no: Unit -> A) -> A: match c: 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