Last Updated: February 25, 2016
·
516
· badawe

Circular interation between array

Here is a tip to easly navigate between array

Next interation

int i = (i+1) % targetArray.Count

Prev interation

int  i = (i + (targetArray.Count-1)) % targetArray.Count;

1 Response
Add your response

this is what I was looking for !

over 1 year ago ·