def owner.go
import bolt@1.27.0.0/src/rules.bend as Rulesimport Base
import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy
135# the first of the directories that is a root, or `` (the package `.`)
136def owner.go(us: List<&2, String>, +roots: List<&2, String>) -> String:
137 match us:
138 case Nil{}:
139 ""
140 case Con{+u, rest}:
141 Lazy.stop(String, has(roots, u), u, _u => owner.go(rest, roots))