def files.of

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

import ezx@1.11.0.0/src/fetch/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/lock/world.bend as W
import ezx@1.11.0.0/src/pkg/pkg.bend as K

275# the committed files a listing names, as the walk takes them
276def files.of(ls: List<&2, W.Source>) -> List<&2, K.Source>:
277  match ls:
278    case []:
279      []
280    case W.Source{at, text} <> tl:
281      K.Source{at, text} <> files.of(tl)

Uses (3)

Used by (1)