the input range to fold
the initial value of the accumulator
the accumulated result
See Implementation