def add

ezx@1.11.0.0 · src/ledger/render.bend:102

import ezx@1.11.0.0/src/ledger/render.bend as Render
import Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M

102# the ledger with a dependency added, replacing any of the same name, so adding
103# twice is the same as adding once
104def add(manifest: M.Manifest, +dependency: M.Dep) -> M.Manifest:
105  M.Manifest{n, e, b, h, pa, pv, ds, ts} = manifest
106  M.Manifest{n, e, b, h, pa, pv, List.append(&2, M.Dep, without(ds, M.dep.name(dependency)), [dependency]), ts}

Uses (6)

Used by (1)