def members
bolt@1.27.0.0 · src/rules.bend:147
import bolt@1.27.0.0/src/rules.bend as Rules
import Base
import bolt@1.27.0.0/src/rules/digest.bend as Digest
147
148def members(ds: List<&2, Digest.Digest>, +roots: List<&2, String>, +pkg: String) -> List<&2, Digest.Digest>:
149 match ds:
150 case Nil{}:
151 Nil{}
152 case Con{Digest.Digest{path, norm, +dir, is_laws, is_law_file, exempt, tops, says, deps, laws}, rest}:
153 +more = members(rest, roots, pkg)
154 Bool.pick(List<&2, Digest.Digest>, String.eq(owner(roots, dir), pkg),
155 Digest.Digest{path, norm, dir, is_laws, is_law_file, exempt, tops, says, deps, laws} <> more, more)