def initialize
bendvy-ecs-core@0.1.0.3 · execution_composer_layout.bend:77
import bendvy-ecs-core@0.1.0.3/execution_composer_layout.bend as ExecutionComposerLayout
import Base
77def initialize(layout:Layout,route:Route,owner:payload(layout,route)) -> stored(layout,route):
78 match layout route owner:
79 case LayoutLeaf{P,V,refresh,_,_} AtLeaf{} owner:initialized(P,V,refresh(owner))
80 case ClassifiedLayoutLeaf{P,V,refresh,_,_,_} AtLeaf{} owner:initialized(P,V,refresh(owner))
81 case LayoutPair{left,_} InLeft{rest} owner:initialize(left,rest,owner)
82 case LayoutPair{_,right} InRight{rest} owner:initialize(right,rest,owner)
83 case EmptyLayout{} _ owner:Viewed{owner,Unit{}}
84 case LayoutLeaf{_,_,_,_,_} InLeft{_} owner:Viewed{owner,Unit{}}
85 case LayoutLeaf{_,_,_,_,_} InRight{_} owner:Viewed{owner,Unit{}}
86 case ClassifiedLayoutLeaf{_,_,_,_,_,_} InLeft{_} owner:Viewed{owner,Unit{}}
87 case ClassifiedLayoutLeaf{_,_,_,_,_,_} InRight{_} owner:Viewed{owner,Unit{}}
88 case LayoutPair{_,_} AtLeaf{} owner:Viewed{owner,Unit{}}