Created
July 20, 2011 16:47
-
-
Save pollingj/1095334 to your computer and use it in GitHub Desktop.
Odd for loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for num in [1..starValue] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (num = 1; 1 <= starValue ? num <= starValue : num >= starValue; 1 <= starValue ? num++ : num--) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@pollingj As I said, the optimization is on the current master branch of the CoffeeScript compiler, but isn't in the latest tagged release (1.1.1). It will be in 1.1.2.