A function that accumulates a value by combining an accumulator with each element.
| accumulator |
the current accumulated value. |
| element |
the current element. |
|
the new accumulated value. |