def complexity

bend-lint-pack@0.1.1.0 · complexity/cyclomatic.bend:61

import bend-lint-pack@0.1.1.0/complexity/cyclomatic.bend as Cyclomatic
import Base

61# 1 + Mat - Efq; never below 1.
62def complexity(t: Tally) -> U32:
63  match t:
64    case Tally{+mats, efqs}:
65      U32.add(1, U32.sub(mats, U32.min(mats, efqs)))

Uses (5)

Used by (1)