You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ coffee -be --cli "console.log (n for n in [0..5] when n % 2)"
[ 0, 1, 2, 3, 4, 5 ]
$ coffee -bj --cli "console.log (n for n in [0..5] when n % 2)"
// Generated by CoffeeScript 2.0.0-beta9-dev
var n;
console.log(function (accum$) {
for (i$ = 0; i$ <= 5; ++i$) {
n = i$;
accum$.push(n);
}
return accum$;
}.call(this, []));
jashkenas/coffee-script says:
$ coffee -be "console.log (n for n in [0..5] when n % 2)"
[ 1, 3, 5 ]
$ coffee -bce "console.log (n for n in [0..5] when n % 2)"
// Generated by CoffeeScript 1.7.1
var n;
console.log((function() {
var _i, _results;
_results = [];
for (n = _i = 0; _i <= 5; n = ++_i) {
if (n % 2) {
_results.push(n);
}
}
return _results;
})());
The text was updated successfully, but these errors were encountered:
jashkenas/coffee-script says:
The text was updated successfully, but these errors were encountered: