def selector
import bendvy-ecs-core@0.1.0.4/ordinary_query_declaration.bend as OrdinaryQueryDeclarationimport Base
96# Consume the declaration to obtain its owner-threading row predicate.
97# Selection grants no additional component access and does not enumerate rows.
98def selector(~S:Data,~H:Type,~G:Type,declaration:Declaration<S,H,G>) -> H -> H & Bool:
99 match declaration:
100 case Declaration{_,select,_}:select