title: Try to get sub array With given Range
body: <p>While try to get sub array With given Range at that time this error.</p>
  
  <pre><code>Cannot subscript a value of type '[Info]' with an index of type 'CountableRange&lt;Int&gt;' .
  </code></pre>
  
  <p>My code is </p>
  
  <p>Info Modal</p>
  
  <pre><code>class Info : NSObject {
      var type : Type = .Unknown
      var data = ""
  
      init() {
          super.init()
      }
  }
  </code></pre>
  
  <p>Array declaration</p>
  
  <pre><code>var currentData : [Info] = []
  </code></pre>
  
  <p>While trying this code</p>
  
  <pre><code>let moreAnimals: [Info] = self.currentData[0..&lt;5] //above error disply.
  </code></pre>