def contains
import bendvy-ecs-core@0.1.0.4/schedule.bend as Scheduleimport Base
39def contains(ids: List<&2,U32>,+id: U32) -> Bool:
40 match ids:
41 case []: False{}
42 case +head <> rest: Bool.or(U32.is_eq(head,id),contains(rest,id))
import bendvy-ecs-core@0.1.0.4/schedule.bend as Scheduleimport Base
39def contains(ids: List<&2,U32>,+id: U32) -> Bool:
40 match ids:
41 case []: False{}
42 case +head <> rest: Bool.or(U32.is_eq(head,id),contains(rest,id))