title: How can I keep track of array index in for loop?
body: <p>If I write:</p>
  
  <pre><code> for (NSString* word in self.words)
  {
  
  }
  </code></pre>
  
  <p>And I want to keep track of my position in the array, how can I do that? Of course, I know I can just create an int and increment it as I loop, a.k.a. <em>the old-fashioned way.</em> I guess I'm just looking to see if there's an opportunity here to learn something. Like in python we have the handy <code>enumerate()</code> function for this sort of thing which gives you indices paired with objects.</p>