How to rotate items of a list

Apparently, there is no native function in AI2 to rotate data in an array.

Which on of these procedures do you recommend:

1- "Replace" item1 with the last item and do it in a loop for the length of the list.
2-Define a temporary variable, place the last item it it, remove the last item, and insert the temporary variable as the first item?

1 Like

I think you should find your answer in the listutillity extension by Hossein Sir

Not sure why you would do this, you will just be back where you started ? Explain what you are hoping to achieve.

Have you found the reverse list block yet ?

2 Likes

I'd prefer this because this is easier to do.

1 Like

@Sirous_Nekooei You may want to take a look at the example below. It is used to rotate data in a list

2 Likes