def recipe_checked
import bendvy-ecs-core@0.1.0.4/feature.bend as Featureimport Base
163def recipe_checked(~S:Data,~Ctx:Type,~Owners:Type,~Extra:Type,result:Validation,ctx:Ctx,recipe:Recipe<S,Ctx,Owners,Extra>) -> RecipeResult<S,Ctx,Owners,Extra>:
164 match result recipe:
165 case Invalid{error} recipe: Refused{error,ctx,recipe}
166 case Valid{} Recipe{_,owners,build}: recipe_completed(~S,~Ctx,~Owners,~Extra,build(ctx,owners))