I have a list like this one:
aaah= {{11, 21, 31}, {12, 22, 32}, {13, 23, 33}}
and I finally want to get a list which looks like this one:
{{{1, 11}, {1, 21}, {1, 31}},
{{2, 12}, {2, 22}, {2, 32}},
{{3, 13}, {3, 23}, {3, 33}}}
I am pretty sure that I can use Thread
, List
and Range
to do this, but I can't get the right combination...
At the moment this is my best try:
Thread[List[Table[1, 3], aaah[[1]]]]
which does exactly what I want, but only on the first row. I appreciate any help! Thanks in advance