title: Objective C removeObjectsAtIndexes desire cleaner coding
body: <p>I would like to create a shorter and more elegant version of some working code.</p>
  
  <p>FYI I have to add an element to an existing array, and then remove one, and repeat. (unfortunately I can't add more than one element and then remove more than one).</p>
  
  <p>Working code:</p>
  
  <pre><code>NSMutableArray *destinationArray;
  destinationArray = [[NSMutableArray alloc] init];
  NSMutableArray *originArray = [[NSMutableArray alloc]init];
  
  // Copy one specific array element from originArray to destinationArray
  // Note: assume originArray and destinationArray populated at this point
  int originIndex = var1-var2+1;
  [destinationArray addObject:originArray[originIndex]];
  
  // Remove one specific array element from destinationArray
  [destinationIndex removeAllIndexes];   // clear index if used previously
  [destinationIndex addIndex:var3-var4-1];
  [destinationArray removeObjectsAtIndexes:destinationIndex];
  </code></pre>
  
  <p>I would prefer some version of the following:</p>
  
  <pre><code>[destinationArray addObject:originArray[var1-var2+1]];
  [destinationArray removeObjectsAtIndexes:[var3-var4-1]];
  </code></pre>
  
  <p>Is there a way to make this shorter version work? (gives expected identifier error)</p>
  
  <p>Thanks much for your help...</p>