title: How to make an array of certain size in Swift 4?
body: <p>How do I make a simple array of say 1000 floats? I have tried this:</p>
  
  <pre><code>var computeArray = Array&lt;Float&gt;(repeating: nil, count:1000)
  </code></pre>
  
  <p>and get </p>
  
  <blockquote>
    <p>Type of expression is ambiguous without more context</p>
  </blockquote>
  
  <p>I also tried this and got the same thing:</p>
  
  <pre><code>var computeArray = [Float](repeating: nil, count:1000)
  </code></pre>
  
  <p>It's so simple but I can't get it to work. These are basically the same as examples I've found online.  Has something changed with the most recent Swift 4?</p>