def prepend
import bendvy-ecs-core@0.1.0.4/feature.bend as Featureimport Base
150# Prepend an owned feature to a recipe, retaining head-before-tail build
151# and bootstrap/update plan order. Does not validate, invoke builders or
152# automatically add dependencies; run_recipe validates the completed selection.
153def prepend(~S:Data,~Ctx:Type,~HO:Type,~TO:Type,~HE:Type,~TE:Type,head:Feature<S,Ctx,HO,HE>,tail:Recipe<S,Ctx,TO,TE>) -> Recipe<S,Ctx,Pack<HO,TO>,Pack<HE,TE>>:
154 match head tail:
155 case FeatureOwner{definition,ho,head} Recipe{tree,to,tail}: Recipe{Sequence{definition_tree(~S,definition),tree},Pack{ho,to},ctx => owners => callbacks(~S,~Ctx,~HO,~TO,~HE,~TE,head,tail,ctx,owners)}
Uses (6)
Used by (0)
No other definition uses this definition.