title: Create an Array of n1 "zeros" and n2 "ones" in scala
body: <p>I'm new to scala and I have a simple question.</p>
  
  <p>What is the best way to create an Array[int] of length n1+n2 such that it has n1 "zero" elements and n2 one elements.</p>
  
  <p>Example:</p>
  
  <p>n1 = 3, n2 = 2</p>
  
  <p>Array[Int] = Array(0, 0, 0, 1, 1)</p>
  
  <p>Thanks</p>