If I write:
for (NSString* word in self.words)
{
}
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. the old-fashioned way. I guess I'm just looking to see if there's an opportunity here to learn something. Like in python we have the handy enumerate()
function for this sort of thing which gives you indices paired with objects.