If you have an accumulator named total with the starting value of 0 and an array which contains the sales for the 12 months of the year, applying this definition with + (addition) as our f, will get you at the nth step the sales for the first n months of the year.
What is the difference between a counter and an accumulator?
![whatsapp](/images/whatsapp.png)