title: How can I write this lambda closure in CoffeeScript?
body: <p>I am trying to recreate this popular jQuery lambda closure with CoffeeScript:</p>
  <pre><code>(function($, window, undefined){
    $(document).ready(function(){
      ...
    });
  })(jQuery, window);
  </code></pre>
  <p>So far I have this:</p>
  <pre><code>(($, window, undefined) -&gt;
    $ -&gt;
      alert &quot;js!&quot;
  )(jQuery, window)
  </code></pre>
  <p>I'm getting this error:</p>
  <blockquote>
  <p>Error: Parse error on line 1: Unexpected 'BOOL'</p>
  </blockquote>
  <p>It looks like <code>undefined</code> is the cause of the problem here. How can I get around this?</p>