Help with storing arrays etc

Hi all.

I need a bit of help with getting, storing etc arrays on integers.

I need an array of 30 numbers in a ring buffer (well thats what I call it) first in and first out.

Basically each minute I input a count into the start of the array moving what was the first number to the second posiiton and dropping off that last value. I know I need to store and retrieve from global context etc and have done some googling but just cant find how to declare the array and then store it etc

Would someone be kind enough to give me an example please

In a function node:

image

image