Skip to content

Instantly share code, notes, and snippets.

@andoriyu
Created March 27, 2012 03:27
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 andoriyu/2212226 to your computer and use it in GitHub Desktop.
Save andoriyu/2212226 to your computer and use it in GitHub Desktop.
Andrey-Cherkashins-MacBook-Pro:~ andoriyu$ nano test.coffee
Andrey-Cherkashins-MacBook-Pro:~ andoriyu$ coffee -p test.coffee
(function() {
var i, n;
n = 2;
for (i = 0; 0 <= n ? i <= n : i >= n; 0 <= n ? i++ : i--) {
console.log(i);
}
}).call(this);
Andrey-Cherkashins-MacBook-Pro:~ andoriyu$ cat test.coffee
n = 2;
for i in [0..n]
console.log(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment