def chain_from
import bendvy-ecs-core@0.1.0.3/dependency_plan.bend as DependencyPlanimport Base
128def chain_from(ids:List<&2,U32>,+previous:U32) -> List<&2,Edge>:
129 match ids:
130 case []:[]
131 case +next <> rest:Edge{previous,next} <> chain_from(rest,next)