def dedupe
import bend-lint-rules@0.2.0.0/layout/imports.bend as Importsimport Base
170# The imports of `es`, in order, after those of `d`, each file's first only.
171def dedupe(es: List<&2, Entry>, d: Deduped) -> Deduped:
172 match es:
173 case Nil{}:
174 d
175 case Con{e, rest}:
176 dedupe(rest, dedupe.add(e, d))