def contains

bendvy-ecs-core@0.1.0.4 · schedule.bend:39

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

Uses (5)

Used by (3)