I have the following int lists:
t1 = [1000, 1001, 1002, 1003, 1004] t2 = [2000, 2001, 2002] t3 = [3000, 3001, 3002, 3003]
The size of the lists of variables, they are not only 3, as in this example. They can have 1 element or many more. Then I have this:
tAll = [t1, t2, t3]
I need a function that turns tAll into something like this:
[[1, 1000, 2000, 3000], [2, 1001, 2001, 3001], [3, 1002, 2002, 3002], [4, 1003, 0, 3003], [5, 1004, 0, 0]]
Is there an easy way to do this?
EDIT: Sorry, I sent this in a hurry, and that was not quite what I wanted. I updated the code above ...