def dedup.pick
import ezx@1.11.0.0/src/pkg/pkg.bend as Pkgimport Base
529# the same path twice is the same file twice, and a package holds it once
530def dedup.pick(same: Bool, head: Item, rest: List<&2, Item>) -> List<&2, Item>:
531 match same:
532 case True{}:
533 rest
534 case False{}:
535 head <> rest