def dedup
import ezx@1.11.0.0/src/pkg/pkg.bend as Pkgimport Base
545# a sorted file list with the repeats dropped
546def dedup(fs: List<&2, Item>) -> List<&2, Item>:
547 match fs:
548 case []:
549 []
550 case Con{h, t}:
551 dedup.head(h, dedup(t))