def dedup.head

ezx@1.11.0.0 · src/pkg/pkg.bend:537

import ezx@1.11.0.0/src/pkg/pkg.bend as Pkg
import 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)

Uses (5)

Used by (1)