On Fri, Jan 29, 2010 at 04:34:00PM +0100, ElkMonster wrote:
> It makes that when you are on tag 9 and you go to the right, you
> will find yourself on tag 1 again.
> 
> cycle(9, 7) = 7
> cycle(9, 10) = 1
> cycle(9, 15) = 6
> ... etc.

Yeah, it's cycle(base, i) = (i-1)%base + 1

I don't know why it wasn't just inlined.


-- 
Jim Pryor
[email protected]

-- 
To unsubscribe, send mail to [email protected].

Reply via email to