def zip

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

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

78# the files a manifest names, each with the text read for it
79def zip(fs: List<&2, K.Item>, ss: List<&2, String>) -> List<&2, K.Source>:
80  match fs ss:
81    case Nil{} Nil{}:
82      []
83    case Nil{} Con{_s, _t}:
84      []
85    case Con{_f, _g} Nil{}:
86      []
87    case Con{f, g} Con{s, t}:
88      K.Source{K.file.at(f), s} <> zip(g, t)

Uses (5)

Used by (1)