Add a cumulativeSum that doesn't take a function.