Course · Section 10: A Closer Look at Functions · Lecture 144: Closures
Implement `accumulate(nums)` using a closure that keeps a running sum, returning the array of running totals.
+ 1 hidden test run on Submit.
A closure over sum lets each mapped call add to and return the accumulating total.
Run your code to see results.