def gathered

bendvy-ecs-core@0.1.0.3 · execution_relation_resource_snapshot.bend:23

import bendvy-ecs-core@0.1.0.3/execution_relation_resource_snapshot.bend as ExecutionRelationResourceSnapshot
import Base
import bendvy-ecs-core@0.1.0.3/execution_composer_layout.bend as Layout
import bendvy-ecs-core@0.1.0.3/execution_relation_store.bend as Store
import bendvy-ecs-core@0.1.0.3/relation_types.bend as T

23def gathered(~S:Data,~resources:Layout.Layout,~route:Layout.Route,~descriptor:T.Descriptor<S>,~payload:{Layout.payload(resources,route) == Store.Store<S,descriptor> : Type},~view:{Layout.view(resources,route) == Store.View<S,descriptor> : Data},result:Layout.resources(~S,resources) & List<&2,GraphView<S>>) -> Layout.resources(~S,resources) & List<&2,GraphView<S>>:
24  match result:
25    case (owners,previous):selected(~S,~resources,~route,~descriptor,~payload,~view,previous,Layout.resource_take(~S,resources,route,owners))

Uses (14)

Used by (1)