def names.lay

ezx@1.11.0.0 · src/fetch/plan.bend:616

import ezx@1.11.0.0/src/fetch/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/lock/plan.bend as P

616# every names file a fetch writes, ahead of what follows
617def names.lay(ms: List<&2, Nm>, rest: List<&2, P.Effect>) -> List<&2, P.Effect>:
618  match ms:
619    case []:
620      rest
621    case m <> t:
622      match m:
623        case NmPut{nv, hash, was}:
624          name.put(nv, hash, was, names.lay(t, rest))
625        case _:
626          names.lay(t, rest)

Uses (4)

Used by (1)