All Grasshopper enthusiasts that have follow the software development from earlier stages know the Shift Example, a case-study of the Shift List component (animation copyrighted by Robert McNeel & Associates).
While doing a research project in RhinoScript, I suddenly faced the need for a function like that one in my algorithm and a migration of tools wasn't so viable, so I developed a ShiftArray function that does exactly that in RhinoScript. You just have to input the array for arrList
and a shifting factor (as an integer) for s
.