title: How to create a slice with repeated elements
body: <p>I need a (non-loopy) way to create a slice of <code>ints</code> with <code>n</code> repeated copies of an element (say <code>10</code>).
  Something equivalent of <code>strings.Repeat(&quot;a&quot;, n)</code> but for <code>[]int</code>.</p>