mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
swapping around the order of variable declaration in array comprehensions, so that it comes out in the proper order: __a, __b, __c
This commit is contained in:
parent
c7cb308b6d
commit
2f63439bff
7 changed files with 77 additions and 77 deletions
|
@ -33,11 +33,11 @@
|
|||
}
|
||||
// Array comprehensions:
|
||||
cubed_list = (function() {
|
||||
__c = []; __a = list;
|
||||
for (__b=0; __b<__a.length; __b++) {
|
||||
num = __a[__b];
|
||||
__c.push(math.cube(num));
|
||||
__a = []; __b = list;
|
||||
for (__c=0; __c<__b.length; __c++) {
|
||||
num = __b[__c];
|
||||
__a.push(math.cube(num));
|
||||
}
|
||||
return __c;
|
||||
return __a;
|
||||
})();
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue