ICE: Array of cumulative sums


If you have an array like [4,9,7,2], how do you get an array like [4,13,20,22], where each element is the cumulative sum of elements in the first array?

One possible approach would be to use a Repeat with Counter with Select SubArray in Array.

1 thought on “ICE: Array of cumulative sums

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s