def Yaml.docs.parse

bend-kube-runtime@0.2.0.0 · src/yaml.bend:1147

import bend-kube-runtime@0.2.0.0/src/yaml.bend as Yaml
import Base
import bend-kube-runtime@0.2.0.0/src/json.bend as J

1147def Yaml.docs.parse(ds: List<&2, String>, acc: List<&2, J.Json>) -> List<&2, J.Json>:
1148  match ds:
1149    case Nil{}:
1150      acc
1151    case Con{+d, t}:
1152      Yaml.docs.parse(t, Yaml.docs.keep(d, acc, List.is_empty(&2, Line, Yaml.lines(d))))

Uses (7)

Used by (1)