def namespaces

bendvy-ecs-core@0.1.0.4 · relation_reorder.bend:60

import bendvy-ecs-core@0.1.0.4/relation_reorder.bend as RelationReorder
import 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))

Uses (6)

Used by (1)