Grasping the rest parameter

after the first iteration, the accumulator is the returned value of previous iteration
and the current value is the current value of the array being iterated