def unseen
import bolt@1.27.0.0/src/lint/plan.bend as Planimport Base
import bolt@1.27.0.0/src/rules/imports.bend as Imports
184# the paths that resolve to none of the paths seen
185def unseen(ps: List<&2, String>, +cwd: String, +seen: List<&2, String>) -> List<&2, String>:
186 match ps:
187 case Nil{}:
188 Nil{}
189 case Con{+p, rest}:
190 +more = unseen(rest, cwd, seen)
191 Bool.pick(List<&2, String>, Imports.has(seen, abs(cwd, p)), more, p <> more)