Yaml.Yaml.head.go: def of bend-kube-runtime@0.2.0.0 Import: import bend-kube-runtime@0.2.0.0/src/yaml.bend as Yaml Lines 121-138 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=121&end_line=138 import Base # A block scalar's header ("key: |", "- >-", ...): the text before the # indicator, its style and chomping. def Yaml.head.go(r: String) -> Maybe<&2, BH>: match r: case SCon{'|', SCon{' ', t}}: Some{BH{String.reverse(t) ++ " ", False{}, 0}} case SCon{'>', SCon{' ', t}}: Some{BH{String.reverse(t) ++ " ", True{}, 0}} case SCon{'-', SCon{'|', SCon{' ', t}}}: Some{BH{String.reverse(t) ++ " ", False{}, 1}} case SCon{'-', SCon{'>', SCon{' ', t}}}: Some{BH{String.reverse(t) ++ " ", True{}, 1}} case SCon{'+', SCon{'|', SCon{' ', t}}}: Some{BH{String.reverse(t) ++ " ", False{}, 2}} case SCon{'+', SCon{'>', SCon{' ', t}}}: Some{BH{String.reverse(t) ++ " ", True{}, 2}} case _: None{} Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe 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=Base/base.bend&name=String.reverse https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Con https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Nil https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/yaml.bend&name=BH