def names.lay
import ezx@1.11.0.0/src/lock/plan.bend as Planimport Base
import ezx@1.11.0.0/src/lock/lock.bend as L
868# a names file for every name a lock records, ahead of what follows, so bend
869# reads each name's hash from BEND_LIB and never asks the hub for it
870def names.lay(ns: List<&2, L.Name>, rest: List<&2, Effect>) -> List<&2, Effect>:
871 match ns:
872 case []:
873 rest
874 case L.Name{nv, hash} <> t:
875 Name{nv, hash} <> names.lay(t, rest)