title: Passing a function to an argument in Scala
body: <p>Is there any way to do something like <code>argument.&lt;keyword&gt;(function)</code> in Scala?</p>
  
  <p>For example:</p>
  
  <p><code>[1,2,3].supply(myFunc)</code> yielding <code>6</code> if myFunc were the summation function.</p>
  
  <p>It just seems easier to chain functions if I were able to do this, instead of calculating something and 'wrapping it' into an argument for a function call.</p>