Feature.contains: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/feature.bend as Feature Lines 49-52 of bendvy-ecs-core@0.1.0.4/feature.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/feature.bend&start_line=49&end_line=52 import Base def contains(items:List<&2,String>,+name:String) -> Bool: match items: case []: False{} case head <> rest: Bool.or(String.eq(head,name),contains(rest,name)) 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=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq