Question: I have a quick question how can I loop over an NSMutable array starting from a certain index. 
For Example I have these double loops I want k to start from the same index as l. 

```
for (Line *l in L)
    {
        for (Line *k in L)
        {
............
        }
    }

```

To elaborate further, lets say L has 10 object so l start from 0-10 and k from 0 -10. What I want is if l is equal 1 k should start from 1-10 rather than 0 - 10 and when l is equal 2 k should start from 2- 10 rather than 0. Any help is Appreciated

Answer: 
You simply need to modify for-statement.

```
 NSInteger indexYouNeed;
 NSInteger iterationCount;

 for (int i = indexYouNeed; i < iterationCount; i++) {
       /* Your code here */         
  }

```

You may find [this link](https://stackoverflow.com/questions/7476541/for-in-statement-objective-c) helpfulll.
You have to use an indexed (ordinary) `for` loop instead of fast enumeration (`for-in`):

```
int l;
for (l=startValue; l<=endValue; l++)
{
    int i;
    for (int i=l; i<=endValue; i++) 
    {
      …
    }
}

```