Consider a loop. I am also interested by fast enumerations. So, it could be
- either a
for(id obj in objects)
- or a
[objects enumerate... ]
I want to know if there is a classical or nice way (in Objective-C
) to make a distinction between the first element of the loop and the others. Of course, if there is only a nice way to distinguish the last elements from the others, I am also interested.
Is there a classical or nice way to apply different instructions to the first or last element of a loop?