title: enumerate function in Swift
body: <p>I am trying to iterate over an array of strings, using the global enumerate function in Swift.</p>
  
  <p>It looks like this:</p>
  
  <pre><code>let fontNames = UIFont.fontNamesForFamilyName(familyName)
  
   for (index, value) in enumerate(fontNames) {
      // Do something here     
    }
  </code></pre>
  
  <p>But Xcode complains with an error saying</p>
  
  <p>Cannot convert the expression's type 'EnumerateGenerator' to type '$T1'</p>