04-10-2017 11:56 AM
Hi everbody,
I have a array. for example,
index 0 is 20 (element)
index 1 is 10
....
index 10 is 30
I would like to shift index of the array and add a new number to index 0 and 12. for example,
index 0 is new number (0)
index 1 is 20
index 2 is 10
....
index 11 is 30
index 12 new number(100)
How can I do it?
Thank you.
04-10-2017 12:01 PM - edited 04-10-2017 01:07 PM
Use "build array" with three inputs. Middle for array and Top/bottom for the new elements.
04-10-2017 12:50 PM
Rotate Array followed by a Replace Array Subset should do it.
04-10-2017 01:38 PM
@crossrulz wrote:
Rotate Array followed by a Replace Array Subset should do it.
That would keep the array the same size. The way I understood, the new array should be larger by two elements.