def Yaml.cut_at
import bend-kube-runtime@0.2.0.0/src/yaml.bend as Yamlimport Base
89# Whether a comment starts at the head of s: a '#' after a space, outside
90# quotes.
91def Yaml.cut_at(s: String, +q: U32, prev: Bool) -> Bool:
92 match s:
93 case SCon{'#', t}:
94 Bool.and(prev, U32.is_eq(q, 0))
95 case _:
96 False{}