mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
preparing documentation for 0.9.5
This commit is contained in:
parent
8fcd67e82f
commit
28d5db3bca
36 changed files with 937 additions and 845 deletions
|
@ -1,4 +1,4 @@
|
|||
var _i, _len, cubes, list, math, num, number, opposite, race, square;
|
||||
var cubes, list, math, num, number, opposite, race, square, _i, _len, _results;
|
||||
var __slice = Array.prototype.slice;
|
||||
number = 42;
|
||||
opposite = true;
|
||||
|
@ -16,15 +16,19 @@ math = {
|
|||
return x * square(x);
|
||||
}
|
||||
};
|
||||
race = function(winner) {
|
||||
var runners;
|
||||
runners = __slice.call(arguments, 1);
|
||||
race = function() {
|
||||
var runners, winner;
|
||||
winner = arguments[0], runners = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
|
||||
return print(winner, runners);
|
||||
};
|
||||
if (typeof elvis !== "undefined" && elvis !== null) {
|
||||
if (typeof elvis != "undefined" && elvis !== null) {
|
||||
alert("I knew it!");
|
||||
}
|
||||
for (_i = 0, _len = list.length; _i < _len; _i++) {
|
||||
num = list[_i];
|
||||
cubes = math.cube(num);
|
||||
}
|
||||
cubes = ((function() {
|
||||
_results = [];
|
||||
for (_i = 0, _len = list.length; _i < _len; _i++) {
|
||||
num = list[_i];
|
||||
_results.push(math.cube(num));
|
||||
}
|
||||
return _results;
|
||||
})());
|
Loading…
Add table
Add a link
Reference in a new issue