This is probably a simple math issue, but I never got past 11th grade math…

I want to take any simple list of numbers, and add them cumulatively and recursively, so that if the input list is A, B, C, D, E, the output of the operation is a list of numbers equal to A, A+B, A+B+C, A+B+C+D, A+B+C+D+E.

And I need it to work with any length list.

Is there a component in one of the math heavy plugins like Heteroptera that will just do this? Or is there some basic equation I could use that I would know about if I had just stayed in math class in 12th grade?

The purpose of this, by the way, is to array planes to orient objects of different widths so that they’re all right next to each other.