Skip to content

Instantly share code, notes, and snippets.

@michaelficarra
Created December 18, 2010 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelficarra/746729 to your computer and use it in GitHub Desktop.
Save michaelficarra/746729 to your computer and use it in GitHub Desktop.
950
for x, index in [1, 2, 3]
func = ->
console.log index
index++
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);
}
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