def has_system
import bendvy-ecs-core@0.1.0.4/ordinary_checked_bindings.bend as OrdinaryCheckedBindingsimport Base
import bendvy-ecs-core@0.1.0.4/schedule.bend as Sch
59def has_system(steps:List<&2,Sch.Step>,+id:U32) -> Bool:
60 match steps:
61 case []:False{}
62 case Sch.System{other,_} <> rest:Bool.or(U32.is_eq(other,id),has_system(rest,id))
63 case _ <> rest:has_system(rest,id)