Syntax
cumulative(array)
Description
The cumulative() function returns an array by increasing by one element after another, and including all the amounts that have been added before.
Example
include("math")
array=[1,2,3,4,5,6]
array=cumulative(array)
println(array)
[1,3,6,10,15,21]