Running Total
Calculate the sums of a loop of numbers, where the sum at each index is the sum of the numbers preceding the current number.
Input |
---|
1 |
3 |
5 |
Output |
---|
0 |
1 |
4 |
To calculate the total sum of all numbers, use the Sum patch.
Running Total
- Input
- Input
A loop of numbers, indices, or booleans.
- Output
A loop of sums.