Using a switch/case for array index
<p>I am trying to get the count of the indexes in an array and build cases of of the count but I am not able to build it properly nor an I find anything online or in the docs about it. So far I have the following...</p>

<pre><code> for array.count in theArray {
     switch array.count {
     case 1...5 :
       //do something
     case 6...10 :
       //do something
     case &gt; 10 :
       //do something
     default :
       //do something
     } //close for switch        
 }//close for for/in
</code></pre>