def when

yaml-for-bend@0.1.1.0 · compose.bend:75

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

Uses (2)

Used by (9)