def map

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

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

145# Transform detached Data output while retaining the source membership.
146# The pure Data mapper receives no World or affine payload owner.
147def map(~H:Type,~S:Data,~A:Data,~B:Data,~source:DeclaredSelection<H,S,A>,~name:A -> B) -> DeclaredSelection<H,S,B>:
148  DeclaredSelection{matches_field(~H,~S,~A,source),map_project(~H,~S,~A,~B,project_field(~H,~S,~A,source),name)}

Uses (4)

Used by (0)

No other definition uses this definition.