title: How to pass Arrays as arguments to a function in Scala?
body: <p>forgive if this is too basic of a question,I'm pretty new to scala and been stuck at this particularly.</p>
  
  <p>What I'm trying to achieve is,to have a function which takes an array as arguments,like so :</p>
  
  <pre><code> evenOdd(1,2,3,4,5,6);  //where evenOdd is my function
  </code></pre>
  
  <p>The function definition looks like :</p>
  
  <pre><code>def evenOdd(x : Array[Int] = new Array[Int](6)){
  
  }
  </code></pre>
  
  <p>It throws an error that too many arguments for the function.How can I achieve passing multiple array integers as fixed size in the function ?</p>