Fixes indices that fall outside the valid range 1:n using circular (modulo) wrapping.
1:n
Useful links