scala list of anonymous functions
<p>Like to create a list of function literals and (a) avoid pre-defining them and (b) use shorthand syntax. Failing at the moment.</p>

<pre><code>def g = (x: Int) =&gt; x + 1 //pre-defined

def h = (x: Int) =&gt; x + 2

List(g,h) //succeeds

List( (x: Int) =&gt; x + 1, (x: Int) =&gt; x + 2) ) //fails
      ^';' expected but ')' found.
</code></pre>