def repeated

bendvy-ecs-core@0.1.0.4 · feature.bend:53

import bendvy-ecs-core@0.1.0.4/feature.bend as Feature
import Base

53def repeated(present:Bool,name:String,next:Unit -> Validation) -> Validation:
54  match present:
55    case True{}: Invalid{DuplicateFeature{name}}
56    case False{}: next(Unit{})

Uses (5)

Used by (1)