def distinct
import bend-lint-pack@0.1.1.0/common.bend as Commonimport 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))