def has

bendvy-ecs-core@0.1.0.3 · dependency_plan.bend:21

import bendvy-ecs-core@0.1.0.3/dependency_plan.bend as DependencyPlan
import 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))

Uses (6)

Used by (6)