def Count.add

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

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

402def Count.add(is_def: Bool, +x: String, c: Count) -> Count:
403  match c:
404    case Count{+seen, n}:
405      Count.put(Bool.and(is_def, Bool.not(has(seen, x))), x, seen, n)

Uses (7)

Used by (1)