def doc.vals

yaml-for-bend@0.1.1.0 · yaml.bend:32

import yaml-for-bend@0.1.1.0/yaml.bend as Yaml
import Base
import yaml-for-bend@0.1.1.0/value.bend as V
import yaml-for-bend@0.1.1.0/compose.bend as C

32def doc.vals(ds: List<&2, C.Doc>) -> List<&2, V.Yaml>:
33  match ds:
34    case Nil{}:
35      []
36    case Con{d, rest}:
37      match d:
38        case C.Doc{v, at}:
39          v <> doc.vals(rest)

Uses (3)

Used by (1)