repo-generator-counting-idiom

Status: IN

Multiple solutions use `sum(pred(x) for x in iterable)` as the standard conditional counting pattern, exploiting Python's `True == 1` coercion and avoiding intermediate list allocation.

Source: entries/2026/06/06/counting-words-with-a-given-prefix-solution.md

JSON