Workspace.sect.has: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/ws/workspace.bend as Workspace Lines 512-519 of ezx@1.11.0.0/src/ws/workspace.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/ws/workspace.bend&start_line=512&end_line=519 import Base import ezx@1.11.0.0/src/toml/toml.bend as T # whether a document has a section of this name def sect.has(ss: List<&2, T.Sect>, +name: String) -> Bool: match ss: case []: False{} case +hd <> tl: rest = sect.has(tl, name) Bool.or(String.eq(sect.name(hd), name), rest) Uses (7): 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 https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/toml/toml.bend&name=Sect https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ws/workspace.bend&name=sect.name