def has
import bendvy-ecs-core@0.1.0.3/dependency_plan.bend as DependencyPlanimport Base
21def has(~Requirement:Data,nodes:List<&2,Node<Requirement>>,+id:U32) -> Bool:
22 match nodes:
23 case []:False{}
24 case Node{other,_} <> rest:Bool.or(U32.is_eq(other,id),has(~Requirement,rest,id))