def distinct

bend-lint-pack@0.1.1.0 · common.bend:412

import bend-lint-pack@0.1.1.0/common.bend as Common
import Base

412def distinct(names: List<&2, String>, +nodes: Set(), c: Count) -> Count:
413  match names:
414    case Nil{}:
415      c
416    case Con{+x, rest}:
417      distinct(rest, nodes, Count.add(has(nodes, x), x, c))

Uses (6)

Used by (1)