Sublists; Quick Question


#1

Quick Question here; it’s probably a no-brainer for all you guys…:

I have a list, with sub-lists consisting of 4 points. I would like to make 4 new lists, consisting of all 4 sublist’s number 1,2,3,4.

 

So instead of this: 1.1, 1.2, 1.3, 1.4, 2.1, 2.2, 2.3, …

i want this: 1.1, 2.1, 3.1, 4.1…-and then 3 more lists of respectively x.2, x.3, x.4

 

That way i can get all my lower right corners of my AC in one list, lower left corners in the second list etc., and then i can calculate the internal distances of each AC.

Hope you understand my problem, otherwise don’t hesitate to ask.

Thanks in advance!

tue

 

Capture


#2

Solved the quest myself, just not very elegant, i think. But i became aware of the “transpose” node, and then i could slice the lists one by one as needed:

Capture_solved

 

Only thing is; it’s not very elegant, i’d still like to know if there is another node more suited for this?

 


#3

List.Transpose is the elegant solution you’re looking for.


#4

Thank you, Andreas. It works well, and i even got it to export to Excel. Success! :sunglasses: