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 [5..-5])"
[]
$ coffee -bj --cli "console.log (n for n in [5..-5])"
// Generated by CoffeeScript 2.0.0-beta9-dev
var n;
console.log(function (accum$) {
for (i$ = 5; i$ <= -5; ++i$) {
n = i$;
accum$.push(n);
}
return accum$;
}.call(this, []));
jashkenas/coffee-script produces the following:
$ coffee -be "console.log (n for n in [5..-5])"
[ 5, 4, 3, 2, 1, 0, -1, -2, -3, -4, -5 ]
$ coffee -bce "console.log (n for n in [5..-5])"
// Generated by CoffeeScript 1.7.1
var n;
console.log((function() {
var _i, _results;
_results = [];
for (n = _i = 5; _i >= -5; n = --_i) {
_results.push(n);
}
return _results;
})());
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/2268299-loops-comprehensions-over-decreasing-ranges-don-t-work?utm_campaign=plugin&utm_content=tracker%2F33145&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F33145&utm_medium=issues&utm_source=github).
The text was updated successfully, but these errors were encountered:
jashkenas/coffee-script produces the following:
The text was updated successfully, but these errors were encountered: