I have the following problem and I am not sure how to speed it up:
I construct a list element by element like so:
This results in a list
a with three indices and I would like to reorder its indices as follows:
Notice that initially the first index in
i and now it is moved to the last position.
What I do at the moment is traverse the list with
Table and reorder it elements as above, but I am wondering if there is a faster way to do this.
If this was a simple matrix, the
Transpose operation would do the trick but I have no idea what the
Transpose equivalent can apply here!
P.S.: the values of the list do not matter, just the order of its elements I need changing.