mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
docs for assignment-as-expression
This commit is contained in:
parent
adaae0ccae
commit
834442148b
21 changed files with 190 additions and 128 deletions
|
@ -1,20 +1,19 @@
|
|||
(function(){
|
||||
|
||||
var __a, __b, __c, __d, __e, __f, __g, __h, food, i, lunch, row;
|
||||
// Eat lunch.
|
||||
var lunch;
|
||||
var __a = ['toast', 'cheese', 'wine'];
|
||||
var __d = [];
|
||||
for (var __b=0, __c=__a.length; __b<__c; __b++) {
|
||||
var food = __a[__b];
|
||||
__a = ['toast', 'cheese', 'wine'];
|
||||
__d = [];
|
||||
for (__b=0, __c=__a.length; __b<__c; __b++) {
|
||||
food = __a[__b];
|
||||
__d[__b] = food.eat();
|
||||
}
|
||||
lunch = __d;
|
||||
// Zebra-stripe a table.
|
||||
var __e = table;
|
||||
var __h = [];
|
||||
for (var __f=0, __g=__e.length; __f<__g; __f++) {
|
||||
var row = __e[__f];
|
||||
var i = __f;
|
||||
__e = table;
|
||||
__h = [];
|
||||
for (__f=0, __g=__e.length; __f<__g; __f++) {
|
||||
row = __e[__f];
|
||||
i = __f;
|
||||
__h[__f] = i % 2 === 0 ? highlight(row) : null;
|
||||
}
|
||||
__h;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue