mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
26 lines
No EOL
645 B
JavaScript
26 lines
No EOL
645 B
JavaScript
(function(){
|
|
var __a, __b, __c, __d, __e, __f, __g, __h, __i, __j, __k, __l, food, i, lunch, row;
|
|
// Eat lunch.
|
|
__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.
|
|
__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;
|
|
// Check the first one hundred combinations.
|
|
__k = [];
|
|
for (__l=0, i=1, __j=100; i<=__j; i++, __l++) {
|
|
__k[__l] = lockpick(combinations[i]);
|
|
}
|
|
__k;
|
|
})(); |