Compose.opens: def of yaml-for-bend@0.1.1.0 Import: import yaml-for-bend@0.1.1.0/compose.bend as Compose Lines 375-385 of yaml-for-bend@0.1.1.0/compose.bend: https://jend.leeeet.dev/read.txt?path=yaml-for-bend@0.1.1.0/compose.bend&start_line=375&end_line=385 import Base # Whether a collection still open has the anchor +name+. def opens(stack: List<&2, Open>, +name: String) -> Bool: match stack: case Nil{}: False{} case Con{o, rest}: match o: case OSeq{anchor, tag, items, start, at}: Bool.or(is_name(anchor, name), opens(rest, name)) case OMap{anchor, tag, items, start, at}: Bool.or(is_name(anchor, name), opens(rest, name)) Uses (6): 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=yaml-for-bend@0.1.1.0/compose.bend&name=Open https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/compose.bend&name=is_name