def matched_runtime

bendvy-ecs-core@0.1.0.4 · inspector_relation_projection.bend:36

import bendvy-ecs-core@0.1.0.4/inspector_relation_projection.bend as InspectorRelationProjection
import Base
import inspector.bend as I
import world.bend as W
import relation_types.bend as G
import relation_commands.bend as A
import relation_query.bend as RQ

36# Runtime-data counterparts let composed query kernels share code across
37# immutable relation specs without changing graph access or row semantics.
38def matched_runtime(~S:Data,~C:Type,~R:Type,~E:Data,spec:RQ.Spec<S>,target:W.Handle<S>,observed:I.Frame<S,A.Store<S,C>,R,A.Notice<S,E>> & G.Graph<S>) -> I.Frame<S,A.Store<S,C>,R,A.Notice<S,E>> & Bool:
39  (frame,graph)=observed
40  (frame,accepted(~S,RQ.spec_rows(~S,~Unit,spec,graph,target,Unit{})))

Uses (12)

Used by (1)