Yaml.Yaml.ends: def of bend-kube-runtime@0.2.0.0 Import: import bend-kube-runtime@0.2.0.0/src/yaml.bend as Yaml Lines 764-773 of bend-kube-runtime@0.2.0.0/src/yaml.bend: https://jend.leeeet.dev/read.txt?path=bend-kube-runtime@0.2.0.0/src/yaml.bend&start_line=764&end_line=773 import Base # Whether the top container ends before a line at indent i: it is deeper, # or it is a sequence at i and the line is no item of it. def Yaml.ends(+st: List<&2, YFrame>, +i: U32, dash: Bool) -> Bool: match st: case Con{YMap{+j, ms, p}, t}: U32.is_gt(j, i) case Con{YSeq{+j, xs, p}, t}: Bool.or(U32.is_gt(j, i), Bool.and(U32.is_eq(j, i), Bool.not(dash))) case _: False{} Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not 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 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_gt https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/yaml.bend&name=YFrame