It makes sense for `accumulate` to have the same interface as `reduce`, `mapreduce`, `foldl`, etc... Ref #27711