def child
import bendvy-ecs-core@0.1.0.3/dependency_composer_program.bend as DependencyComposerProgramimport Base
46def child(children:List<&2,Scope>,+index:U32) -> Maybe<&2,Scope>:
47 match children:
48 case []:None{}
49 case scope <> rest:child_selected(U32.is_eq(index,0),scope,child(rest,U32.sub(index,1)))