Created
December 18, 2010 18:15
-
-
Save michaelficarra/746729 to your computer and use it in GitHub Desktop.
950
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 x, index in [1, 2, 3] | |
func = -> | |
console.log index | |
index++ |
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
var func, index, x, _fn, _len, _ref; | |
_ref = [1, 2, 3]; | |
_fn = function(x, index) { | |
func = function() {}; | |
console.log(index); | |
return index++; | |
}; | |
for (index = 0, _len = _ref.length; index < _len; index++) { | |
x = _ref[index]; | |
_fn(x, index); | |
} |
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
var func, index, x, _fn, _len, _ref, _ref2; | |
_ref = [1, 2, 3]; | |
_fn = function(x, index) { | |
func = function() {}; | |
console.log(index); | |
return index++; | |
}; | |
for (_ref2 = 0, _len = _ref.length; _ref2 < _len; _ref2++) { | |
_fn(_ref[_ref2], _ref2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment