{"id":"nested-helpers-are-pure-closures","text":"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","truth_value":"IN","source":"entries/2026/06/06/number-of-valid-words-in-a-sentence-solution.md, entries/2026/06/06/odd-string-difference-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"nested-helpers-are-pure-closures","truth_value":"IN","reason":"premise"}]}}