Returns an array of partial sums of elements from the source array (a cumulative sum). If the parameterDocumentation Index
Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
Use this file to discover all available pages before exploring further.
<function> is provided, the values of the array elements are converted by this function before summing.
Syntax
| Parameter | Description | Supported input types |
|---|---|---|
<function> | The function used to convert the array members. | Any function that can convert an array |
<array> | The array used for the sum calculations. | Any array of numeric values |
Return Type
ARRAY of the same type as the input array (must be numeric)
Example
The following example adds1 to each level in the levels array:
2,5,9,19