Lock.names.sects: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/lock/lock.bend as Lock Lines 604-613 of ezx@1.11.0.0/src/lock/lock.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/lock/lock.bend&start_line=604&end_line=613 import Base import ezx@1.11.0.0/src/toml/toml.bend as T import ezx@1.11.0.0/src/pkg/pkg.bend as K # the `[names]` table: every name the lock resolved, in name order and each # once, sorted and deduplicated the way a package's files are. A lock that # resolved no name has no such table, so a project with no named import # locks to the text it always did. def names.sects(ns: List<&2, Name>) -> List<&2, T.Sect>: match ns: case []: [] case +h <> +t: [T.Sect{"names", file.pairs(K.files_of(name.files(h <> t)))}] Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/lock.bend&name=Name https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/lock.bend&name=file.pairs https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/lock.bend&name=name.files https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=files_of https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/toml/toml.bend&name=Sect