title: Array initialization riddle with repeatedValue as a sequence, Swift
body: <p>Trying to pass a generated sequence (could be more complex struct or func values), like generation of some key strings during array initialize.</p>
  
  <p>Here's an array initialization string:</p>
  
  <pre><code>let MyArray: Array&lt;Int&gt; = Array&lt;Int&gt;(count: 100, repeatedValue:(for i in 0...99))
  // it does not work, I am doing it wrong :(
  // instead of (for i in 0...99) could be anything, a key sequence generator
  </code></pre>
  
  <p>Here's what documentation says:</p>
  
  <pre><code>/// Construct a Array of `count` elements, each initialized to
  /// `repeatedValue`.
  init(count: Int, repeatedValue: T)
  </code></pre>
  
  <p>What would be a proper way to replace the "T" with generated or sequenced values. Or should I not bother with this and make array a variable and just fill it later on?</p>
  
  <p>Thanks. </p>