title: For- in loop dynamic closed range
body: <p>What is the correct way of having a dynamic close range of <code>for-in</code> loop? I got an error on this part <code>for z in 1...[10-x]{</code></p>
  
  <pre><code>for x in 1...10{
  
      for y in 1...x{
          print(" ")
      }
  
      for z in 1...[10-x]{
          print("*")
      }
  
      println()
  
  }
  </code></pre>
  
  <p>Error:</p>
  
  <p><code>Playground execution failed: &lt;EXPR&gt;:26:15: error: 'ClosedInterval&lt;T&gt;' does not have a member named 'Generator'
      for z in 1...[10-x]{</code></p>