title: Unwrapping a list or map as function arguments in Scala
body: <p>Is it possible to dynamically unwrap a list/tuple/map items as arguments to a function in Scala? I am looking for a Scala equivalent of Python's <code>args</code>/<code>kwargs</code>.</p>
  
  <p>For instance, in Python if a function is defined as <code>def foo(bar1, bar2, bar3=None, bar4=1)</code> then given a list <code>x=[1,7]</code> and a dictionary <code>y={'bar3':True, 'bar4':9}</code> you can call <code>foo</code> as <code>foo(*x, **y)</code>.</p>