Grasshopper

algorithmic modeling for Rhino

let's say I have a list of numbers: 1,2,3,4,5,6,7,8,9

now I want to sum the first 1,2,3,4,5,6,7,8 and 9 in the list ... so the result is going to be:

1

1+2 = 3

1+2+3 = 6

1+2+3+4 = 10

1+2+3+4+5 = 15

1+2+3+4+5+6 = 21

1+2+3+4+5+6+7 = 28

1+2+3+4+5+6+7+8 = 36

1+2+3+4+5+6+7+8+9 = 45

Is there a tool, that can do me that job? 

How do I get this List {1,3,6,10,15,21,28,36,45}?

Views: 512

Replies to This Discussion

split list works fine

Did you read my other reply. The mass addition component has a partial list output which will handle this

I did ... You are more than right! ... I love you man!

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service