def names.pairs
import ezx@1.11.0.0/src/lock/lock.bend as Lockimport Base
import ezx@1.11.0.0/src/toml/toml.bend as T
640# the `[names]` table of a lock that was read
641def names.pairs(ss: List<&2, T.Sect>) -> List<&2, T.Kv>:
642 match ss:
643 case []:
644 []
645 case +h <> t:
646 at.pick(named1(segs(h), "names"), h, names.pairs(t))