title: Getting exception as "Collection was mutated while being enumerated"
body: <p>I am getting the Collection was mutated while being enumerated exception when I am using this code can any one suggest me how to get out of this.</p>
  
  <pre><code>PaymentTerms * currentElement;
  for (currentElement in termsArray)
  {
      printf("\n currentElement Value........%s",[currentElement.days UTF8String]);
      printf("\n Str value...%s",[Str UTF8String]);
      NSRange range = [currentElement.days rangeOfString:Str options:NSCaseInsensitiveSearch];
      if(!(range.location != NSNotFound))
      {
          PaymentTerms *pTerm1 = [[PaymentTerms alloc]init];
          pTerm1.days = Str;
          printf("\n  pTerm1.days...%s",[ pTerm1.days UTF8String]);
          [termsArray addObject:pTerm1];
      }   
  }
  </code></pre>
  
  <p>Hope I get quick response from ur side.
  Thank in advance,
  Monish.</p>