It’s tough to explain what I want to do in words, so I’ll explain with examples. What is the easiest way to create a function that does the following:
in[1]: function[{{a1, b1},{a2, b2}}]
out[1]: {{a1, a2}, {b1, b2}}
in[2]: function[{a1, b1, c1, d1}, {a2, b2, c2, d2}]
out[2]: {{a1, a2}, {b1, b2}, {c1, c2}, {d1, d2}}
in[3]: function[{{a1, b1},{a2,b2},{a3,b3}}]
out[3]: {{a1, a2, a3}, {b1, b2, b3}}
Essentially I want to group the corrisponding elements of the seperate sublists, to create a new set of sublists.
Any help is greatly appreciated.