def namespaces
import bendvy-ecs-core@0.1.0.4/relation_reorder.bend as RelationReorderimport Base
import world.bend as W
60def namespaces(~S:Data,children:List<&2,W.Handle<S>>,+namespace:U32) -> Bool:
61 match children:
62 case []: True{}
63 case W.Handle{ns,_} <> rest: Bool.and(U32.is_eq(namespace,ns),namespaces(~S,rest,namespace))