Looping the index ( repeat index after it runs out )

hi guys,
I am selecting points by index to make a polygon. I want to get the first item of the list once I run out of the indices. For example, I have indices 2, 6. I shift them +1, now I should have 3,0 instead of 3,7 as my list length is 6.
In grasshopper it was just a right click thing to make it repeat. Do we have something similar here ?

What exactly are you trying to do with these indices? You could use a combination of ShiftIndices and TakeItems to get a range of items (repeating the order as necessary). The indices at this point are integers, so the “order” is lost. You could however create a conditional statement to subtract from values over the index length to “start over” at 0.