def identities

bendvy-ecs-core@0.1.0.4 · ordinary_app_execution_recipe.bend:22

import bendvy-ecs-core@0.1.0.4/ordinary_app_execution_recipe.bend as OrdinaryAppExecutionRecipe
import Base
import bendvy-ecs-core@0.1.0.4/ordinary_app_registration_fields.bend as Records
import bendvy-ecs-core@0.1.0.4/captured_schedule_composition.bend as Identity

22# Advanced metadata conversion retaining namespace/id/name/ordered access.
23# Does not inspect payloads or turn presentation metadata into gameplay grants.
24def identities(~S:Data,fields:List<&2,Records.Fields<S>>) -> List<&2,Identity.Identity>:
25  match fields:
26    case []:[]
27    case Records.Fields{namespace,id,name,access,_,_,_,_} <> rest:Identity.Identity{namespace,id,name,access} <> identities(~S,rest)

Uses (3)

Used by (2)