Hello everyone,
Grasshopper beginner here. I'm looking for a way to transpose a "matrix", where "matrix" means a list of equal length lists. For example, if I have {{1,2,3},{4,5,6}}, I'd like to get {{1,2},{3,4},{5,6}}.
I have three lists of points, and I'd like to transform them into a list of point triplets that I can interpolate a curve over.
A related question: is there a way to split a list into sublists of a fixed length? For example, transform a list of 12 elements into a list of three quarduplets, e.g. {1,2,3,4,5,6,7,8,9,10,11,12} -> {{1,2,3,4}, {5,6,7,8}, {9,10,11,12}} ?
Perhaps I'm not yet thinking in the "grasshopper way" and problems of this nature are best solved in a different way?