Array: move the last array's index at the beginning of the array (solution)

Share simple code if someone needs it (moving the last array index to the top). For example:

1,2,3,4,5,6 became 2,3,4,5,6,1

2,3,4,5,6,1 became 3,4,5,6,1,2

and so on.

I made it for my own project, maybe someone else finds it helpful :slight_smile: .

1 Like

Array β†’ Get Index (0) β†’ Set to Temp Var β†’ Array β†’ Add (Temp Var) β†’ Array β†’ Remove Index (0)

BTW, if any documentation editors are reading this, there are a lot of undocumented Array functions available to Blueprints.
I had thought there were Pop/Push/Shift/Unshift, but I’m not seeing them anywhere.

2 Likes

That’s why I sharing my way solution here: BP system is functionally limited. And thanks for your code share too :slight_smile: .

1 Like