def nested
import bendvy-ecs-core@0.1.0.3/dependency_composer_program.bend as DependencyComposerProgramimport Base
74def nested(items:List<&2,Nested>,+scope:Scope) -> Nesting:
75 match items:
76 case []:Nesting{[],None{}}
77 case Nested{+path,+edges} <> rest:nested_next(edges,checked_scope(path,edges,scoped(path,Some{scope})),nested(rest,scope))