Yaml.Yaml.fold: def of bend-kube-runtime@0.2.0.0 Import: import bend-kube-runtime@0.2.0.0/src/yaml.bend as Yaml Lines 168-177 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=168&end_line=177 import Base # Folded lines: a line break between two text lines becomes a space; blank # lines stay line breaks. def Yaml.fold(xs: List<&2, String>, prev: Bool) -> String: match xs: case Nil{}: "" case Con{SNil{}, t}: "\n" ++ Yaml.fold(t, False{}) case Con{l, t}: Yaml.fold.sep(prev) ++ l ++ Yaml.fold(t, True{}) 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=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.append https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/yaml.bend&name=Yaml.fold.sep