DependencyRegistration.contains: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/dependency_registration.bend as DependencyRegistration Lines 15-18 of bendvy-ecs-core@0.1.0.3/dependency_registration.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/dependency_registration.bend&start_line=15&end_line=18 import Base def contains(ids:List<&2,U32>,+id:U32) -> Bool: match ids: case []:False{} case first <> rest:Bool.or(U32.is_eq(first,id),contains(rest,id)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq