def bump.kind
import bend-lint-pack@0.1.1.0/complexity/cyclomatic.bend as Cyclomaticimport Base
26def bump.kind(+kind: String, t: Tally) -> Tally:
27 match t:
28 case Tally{+mats, +efqs}:
29 Bool.pick(
30 Tally,
31 String.eq(kind, "Mat"),
32 Tally{U32.add(mats, 1), efqs},
33 Bool.pick(
34 Tally,
35 String.eq(kind, "Efq"),
36 Tally{mats, U32.add(efqs, 1)},
37 Tally{mats, efqs}
38 )
39 )