def holds

ezx@1.11.0.0 · src/add/hub.bend:189

import ezx@1.11.0.0/src/add/hub.bend as Hub
import Base
import ezx@1.11.0.0/src/pkg/pkg.bend as K

189# whether a package holds a file at this path
190def holds(fs: List<&2, K.Item>, +at: String) -> Bool:
191  match fs:
192    case []:
193      False{}
194    case +h <> t:
195      +rest = holds(t, at)
196      Bool.or(String.eq(K.file.at(h), at), rest)

Uses (7)

Used by (2)