title: Scala: pass Seq to var-args functions
body: <p>Given a function that takes a variable number of arguments, e.g.</p>
  
  <pre><code>def foo(os: String*) =
    println(os.toList)
  </code></pre>
  
  <p>How can I pass a sequence of arguments to the function? I would like to write:</p>
  
  <pre><code>val args = Seq("hi", "there")
  foo(args)
  </code></pre>
  
  <p>Obviously, this does not work.</p>