title: Fill array with element N times
body: <p>I want to fill an array with 1 element but 5 times.
  What I got so far.</p>
  <pre><code>number = 1234
  a = []
  
  5.times { a &lt;&lt; number }
  puts a # =&gt; 1234, 1234, 1234, 1234, 1234
  </code></pre>
  <p>It works but this feels not the ruby way.
  Can someone point me in the right direction to init an array with 5 times the same value?</p>