Why physically move anything?
If you want to use the values in rotated order en-masse, then do the slice in-situ.
If the array is large, then write an iterator sub that returns the indices in the appropriate order.
Physically (electronically) moving the data, when you can use math to map the indices is silly. Especially for large arrays.
In reply to Re: Rotating an array
by BrowserUk
in thread Rotating an array
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |