def named

ezx@1.11.0.0 · src/remove/plan.bend:60

import ezx@1.11.0.0/src/remove/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M

60# whether a dependency has this name
61def named(ds: List<&2, M.Dep>, +name: String) -> Bool:
62  match ds:
63    case []:
64      False{}
65    case +h <> t:
66      any.step(String.eq(M.dep.name(h), name), _u => named(t, name))

Uses (7)

Used by (2)