Modulo creates cycles. The values of repeat in the pattern as increases.
This is perfect for circular arrays or rotating through options. If you have an array of length and want to access index where might exceed , use .
For example, days of the week cycle every days. If today is day (Wednesday) and you want to know the day days from now, compute (Friday).