title: Multiline function calls in Coffeescript
body: <p>Hi everyone: Suppose I have a function "foo" that should receive two functions as parameters. If I have two lambda functions, I can call "foo" as follows:</p>
  
  <pre><code>foo (-&gt; 1),(-&gt; 2)
  </code></pre>
  
  <p>In this case, "foo" receives two functions, one that just returns 1 and another that returns 2.</p>
  
  <p>However, usually lambda functions are more complicated, so putting both functions on a single line is impractical. Instead, I would like to write two multiline lambda functions. However, I can't figure out for the life of me how to accomplish this in coffeescript- Ideally, I would want to write it as follows, but it throws an error:</p>
  
  <pre><code>foo
      -&gt;
          1
      ,
      -&gt;
          2
  </code></pre>
  
  <p>The best I can come up with that works is super ugly:</p>
  
  <pre><code>foo.apply [
                  -&gt;
                          1
          ,
                  -&gt;
                          2
          ]
  </code></pre>
  
  <p>Can any Coffeescript guru show me how I can do this, without getting an error? Thanks!</p>