title: scala - Can I overload curried methods?
body: <p>Is there a way to overload methods in Scala that take multiple parameter lists? E.g. I'd like to do this:</p>
  
  <pre><code>def foo(a: Int)(b: Int)(c: Int): Int
  
  def foo(a: Int)(b: Int): Int
  </code></pre>
  
  <p>I can define it like this, but trying to call the second method like this:</p>
  
  <pre><code>foo(1)(1)
  </code></pre>
  
  <p>makes the compiler complain about "ambiguous reference to overloaded definition", which seems justified. Is there a way to achieve something like this? The last parameter might be considered optional in some cases, for example.</p>