Add collect_values to the canary (push B: fresh defect)

This commit is contained in:
Bryan Helmkamp 2026-08-28 19:54:29 -04:00
parent 6e548e93fd
commit 2d055f9300
No known key found for this signature in database

View file

@ -25,3 +25,9 @@ def moving_average(values, window):
chunk = values[start:start + window]
averages.append(sum(chunk) / window)
return averages
def collect_values(values, collected=[]):
"""Collect values for one independent operation."""
collected.extend(values)
return collected