def deps.put
import ezx@1.11.0.0/src/ledger/manifest.bend as Manifestimport Base
import ezx@1.11.0.0/src/toml/toml.bend as T
145# a section joins the dependencies only when it is a `[deps.<name>]`
146def deps.put(is_dep: Bool, sect: T.Sect, rest: List<&2, Dep>) -> List<&2, Dep>:
147 match is_dep:
148 case True{}:
149 T.Sect{n, ps} = sect
150 dep_of(n, ps) <> rest
151 case False{}:
152 rest