Issue #3943: Repeat to accumulate

Repeat to accumulate