def dedup.head
import ezx@1.11.0.0/src/pkg/pkg.bend as Pkgimport Base
537# a file against the deduplicated files that follow it
538def dedup.head(+head: Item, rest: List<&2, Item>) -> List<&2, Item>:
539 match rest:
540 case []:
541 [head]
542 case Con{+b, t}:
543 dedup.pick(String.eq(file.at(head), file.at(b)), head, b <> t)