def Yaml.item.go
import bend-kube-runtime@0.2.0.0/src/yaml.bend as Yamlimport Base
882# The item is a mapping when it reads "key: ..." (its keys then sit at
883# i + 2), else a scalar.
884def Yaml.item.go(st: List<&2, YFrame>, +i: U32, rest: String, kr: Maybe<&2, KR>) -> List<&2, YFrame>:
885 match kr:
886 case Some{x}:
887 Yaml.entry.go(st, (i + 2 : U32), x, False{})
888 case None{}:
889 Yaml.item.value(st, Yaml.split_anchor(rest))