title: Is it possible to restart a for loop to its first iteration?
body: <p>In Objective-C, is it possible to restart to the first iteration of a for loop? I don't want to do anything with my objects until I find a "good" object, at which point I want to go back and do stuff with every object up to that good object.</p>
  
  <p>So,</p>
  
  <pre><code>bool someflag = false;
  for (id object in array)
  {
    if(object is good) 
    {
      someflag = true;
      //restart to first object in loop
    }
    if(someflag)
    {
      doStuffWithObject(object);
    }
  }
  </code></pre>
  
  <p>Or is there a different/better way to do what I'm trying to do?  </p>
  
  <p>Obviously the easy way would be to just have two separate <code>for</code> loops -- so if I could get a second opinion telling me that's the best way, that's just what I'll shoot for.  For some reason I have a feeling there's got to be a better way, though.</p>