Named.had: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/ez/named.bend as Named Lines 110-119 of ezx@1.11.0.0/src/ez/named.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/ez/named.bend&start_line=110&end_line=119 import Base import ezx@1.11.0.0/src/ledger/manifest.bend as M # the name the ledger already gives this url, first in document order, or the # fresh one when it gives none. A re-add is then the same entry, whatever the # ledger called it. def had(ds: List<&2, M.Dep>, +url: String, fresh: String) -> String: match ds: case []: fresh case h <> t: M.Dep{n, _h, _e, s} = h had.at(from(s, url), n, had(t, url, fresh)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ez/named.bend&name=from https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ez/named.bend&name=had.at https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/manifest.bend&name=Dep