diff --git a/documentation/coffee/overview.coffee b/documentation/coffee/overview.coffee index 44e4ec95..295f38a1 100644 --- a/documentation/coffee/overview.coffee +++ b/documentation/coffee/overview.coffee @@ -18,5 +18,12 @@ math: { cube: x => x * square(x) } +# Splats: +race: winner, *runners => + print(winner, runners) + +# Existence: +alert("I knew it!") if elvis? + # Array comprehensions: cubed_list: math.cube(num) for num in list diff --git a/documentation/index.html.erb b/documentation/index.html.erb index 1ed90f1a..6ba321da 100644 --- a/documentation/index.html.erb +++ b/documentation/index.html.erb @@ -108,7 +108,7 @@ For a longer CoffeeScript example, check out Underscore.coffee, a port of Underscore.js - to CoffeeScript, which, when compiled, passes the complete Underscore test suite. + to CoffeeScript, which, when compiled, can pass the complete Underscore test suite.

Installation and Usage

@@ -537,6 +537,11 @@ coffee --print app/scripts/*.coffee > concatenation.js