nested-helpers-are-pure-closures

Status: IN

Helper functions nested inside solution methods (e.g., `is_valid` in `countValidWords`, `diff` in `stringWithDifferentDifference`) don't capture mutable state from the enclosing scope — they are pure functions co-located for readability

Source: entries/2026/06/06/number-of-valid-words-in-a-sentence-solution.md, entries/2026/06/06/odd-string-difference-solution.md

JSON