def when

yaml-for-bend@0.1.1.0 · emit.bend:25

import yaml-for-bend@0.1.1.0/emit.bend as Emit
import 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{})

Uses (2)

Used by (2)