Yaml.Yaml.give: def of bend-kube-runtime@0.2.0.0 Import: import bend-kube-runtime@0.2.0.0/src/yaml.bend as Yaml Lines 738-753 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=738&end_line=753 import Base import bend-kube-runtime@0.2.0.0/src/json.bend as J # Hands v to the container on top: a mapping's pending key, a sequence's # next item, or the document itself. def Yaml.give(v: J.Json, st: List<&2, YFrame>) -> List<&2, YFrame>: match st: case Con{YMap{i, ms, Some{k}}, t}: YMap{i, Yaml.member(k, v) <> ms, None{}} <> t case Con{YSeq{i, xs, None{}}, t}: YSeq{i, v <> xs, None{}} <> t case Con{YSeq{i, xs, Some{a}}, t}: YSeq{i, Yaml.wrap(a, v) <> xs, None{}} <> t case Con{YMap{i, ms, None{}}, t}: YMap{i, ms, None{}} <> t case Con{YRoot{x}, t}: YRoot{v} <> t case Nil{}: [YRoot{v}] Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/json.bend&name=Json https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/yaml.bend&name=YFrame https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/yaml.bend&name=Yaml.member https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/yaml.bend&name=Yaml.wrap