def clash
import ezx@1.11.0.0/src/ez/named.bend as Namedimport Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M
139# whether the ledger gives this name to a source other than this url. A hub
140# dependency of the name is another source too.
141def clash(ds: List<&2, M.Dep>, +name: String, +url: String) -> Bool:
142 match ds:
143 case []:
144 False{}
145 case h <> t:
146 M.Dep{n, _h, _e, s} = h
147 clash.at(String.eq(n, name), s, url, clash(t, name, url))