def pair
import bendvy-ecs-core@0.1.0.3/inspector_query_projection.bend as InspectorQueryProjectionimport 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)
- bendvy-ecs-core@0.1.0.3/inspector_query_projection:DeclaredSelection
- bendvy-ecs-core@0.1.0.3/inspector_query_projection:Product
- bendvy-ecs-core@0.1.0.3/inspector_query_projection:matches_field
- bendvy-ecs-core@0.1.0.3/inspector_query_projection:project_field
- bendvy-ecs-core@0.1.0.3/inspector_query_projection:pair_matches
- …
Used by (0)
No other definition uses this definition.