def child_statuses
bendvy-ecs-core@0.1.0.4 · relation_reorder.bend:39
import bendvy-ecs-core@0.1.0.4/relation_reorder.bend as RelationReorder
import Base
import relation_types.bend as G
import relation_commands.bend as A
import world.bend as W
39def child_statuses(~S:Data,~C:Type,~R:Type,~E:Data,children:List<&2,W.Handle<S>>,world:W.World<S,A.Store<S,C>,R,A.Notice<S,E>>) -> W.World<S,A.Store<S,C>,R,A.Notice<S,E>> & List<&2,G.ChildStatus>:
40 match children:
41 case []: (world,[])
42 case W.Handle{+ns,+id} <> rest: child_next(~S,~C,~R,~E,W.valid(~S,~A.Store<S,C>,~R,~A.Notice<S,E>,world,W.Handle{ns,id}),id,world => child_statuses(~S,~C,~R,~E,rest,world))