Circular array in Julia

Also, related post from discourse can help: