def schedule_has
import bendvy-ecs-core@0.1.0.4/ordinary_condition_composition.bend as OrdinaryConditionCompositionimport Base
import bendvy-ecs-core@0.1.0.4/schedule.bend as Sch
156def schedule_has(steps:List<&2,Sch.Step>,+id:U32) -> Bool:
157 match steps:
158 case []:False{}
159 case Sch.System{bound,_} <> rest:Bool.or(U32.is_eq(bound,id),schedule_has(rest,id))
160 case _ <> rest:schedule_has(rest,id)