How can I iterate through an array for two objects to compare them, but at the second iteration (for obj2) I want to exclude comparing the object (obj1) that already was found to match? In other words, I don´t want them to both find the same object.
for (object *obj1 in array)
if (obj1 == "this") //run next iteration
for (object *obj2 in array)
// if (obj2 == @"this");
NSMutableSetandNSMutableOrderedSet(if a strong order is also needed.)