mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
21 lines
No EOL
694 B
JavaScript
21 lines
No EOL
694 B
JavaScript
(function(){
|
|
var __a, __b, __c, __d, __e, countdown, egg_delivery, num;
|
|
countdown = (function() {
|
|
__b = []; __d = 10; __e = 1;
|
|
for (__c=0, num=__d; (__d <= __e ? num <= __e : num >= __e); (__d <= __e ? num += 1 : num -= 1), __c++) {
|
|
__b.push(num);
|
|
}
|
|
return __b;
|
|
})();
|
|
egg_delivery = function egg_delivery() {
|
|
var __f, __g, __h, __i, __j, dozen_eggs, i;
|
|
__g = []; __i = 0; __j = eggs.length;
|
|
for (__h=0, i=__i; (__i <= __j ? i < __j : i > __j); (__i <= __j ? i += 12 : i -= 12), __h++) {
|
|
__g.push((function() {
|
|
dozen_eggs = eggs.slice(i, i + 12);
|
|
return deliver(new egg_carton(dozen));
|
|
})());
|
|
}
|
|
return __g;
|
|
};
|
|
})(); |