Suppose i have several values
d1,d2,d3,d4,d5
How can I swap them in this format?
d2,d1,d3,d4,d5
d3,d2,d1,d4,d5
d4,d1,d2,d3,d5
d5,d1,d2,d3,d4.
In other words, each subsequent value from a series of values becomes the first, and other, in order, follow it. When there are few values, i can do it manually, but if there are hundreds of them, it is much more difficult. Any help is appreciated. Thank you.