List Incrementing

Morning,
i have a list as follow {3,3,3,3,6,2,2}.
image

And i would like to use that as an X value so i would need to increment about the sum of the previous
So it would look like {3,6,9,12,18,20,22}

Thanks for any help

This has been covered a few times on the forum.

Have a look here for a start. :slightly_smiling_face:

Spot on :slight_smile:thanks


Here’s one that, if I may say so myself, is pretty elegant and it also doesn’t need a package.
Edit: removed a bit of useless code.