I have the following Int lists:
t1 = [1000, 1001, 1002, 1003, 1004]
t2 = [2000, 2001, 2002]
t3 = [3000, 3001, 3002, 3003]
The lists size are variable, they are not just 3 like 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: I'm sorry, I posted this in a hurry and it was not exactly what I wanted. I updated the code above...