def identity

bendvy-ecs-core@0.1.0.4 · system.bend:104

import bendvy-ecs-core@0.1.0.4/system.bend as System
import Base
import bendvy-ecs-core@0.1.0.4/world.bend as W

104# Instance identity is observed without consuming the registration owner.
105# Return Registry and its actual registration ID without consuming the owner.
106# IDs must still be validated with namespace/live metadata before execution.
107def identity(~S: Data,~C: Type,~R: Type,~E: Data,~Args: Type,~Error: Data,~Output: Type,~runner: W.World<S,C,R,E> -> Args -> Outcome<W.World<S,C,R,E>,Error,Output>,registry: Registry<S,C,R,E,Args,Error,Output,runner>) -> Registry<S,C,R,E,Args,Error,Output,runner> & U32:
108  match registry:
109    case Registry{namespace,+id,name,access,cursor}: (Registry{namespace,id,name,access,cursor},id)

Uses (6)

Used by (8)