mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-14 01:07:55 -05:00
5 lines
153 B
CoffeeScript
5 lines
153 B
CoffeeScript
-7 % 5 == -2 # The remainder of 7 / 5
|
|
-7 %% 5 == 3 # n %% 5 is always between 0 and 4
|
|
|
|
tabs.selectTabAtIndex((tabs.currentIndex - count) %% tabs.length)
|