def pair

bendvy-ecs-core@0.1.0.3 · inspector_query_projection.bend:113

import bendvy-ecs-core@0.1.0.3/inspector_query_projection.bend as InspectorQueryProjection
import Base

113# Compose two selections with conjunctive membership and Product<A,B>
114# projection, preserving left/right owner threading and short-circuit selection.
115# Does not enumerate targets or change registered cursor state.
116def pair(~H:Type,~S:Data,~A:Data,~B:Data,~left:DeclaredSelection<H,S,A>,~right:DeclaredSelection<H,S,B>) -> DeclaredSelection<H,S,Product<A,B>>:
117  DeclaredSelection{pair_matches(~H,~S,~matches_field(~H,~S,~A,left),~matches_field(~H,~S,~B,right)),pair_project(~H,~S,~A,~B,~project_field(~H,~S,~A,left),~project_field(~H,~S,~B,right))}

Uses (6)

Used by (0)

No other definition uses this definition.