def has_system

bendvy-ecs-core@0.1.0.4 · ordinary_checked_bindings.bend:59

import bendvy-ecs-core@0.1.0.4/ordinary_checked_bindings.bend as OrdinaryCheckedBindings
import 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)

Uses (6)

Used by (1)