def dedup.pick

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

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

Uses (3)

Used by (1)