I have an array of NSSet
instances as mentioned in below code.
NSArray *a = @[@"1", @"2", @"3", @"4", @"5"];
NSArray *b = @[@"1", @"2", @"3", @"6", @"7"];
NSArray *c = @[@"1", @"7", @"8", @"9", @"5"];
NSArray *d = @[@"1", @"6", @"7", @"8", @"9"]; ... upto N number of arrays.
These all N arrays are defined in N instances of NSSet
by using [NSSet setWithArray:]
method to create the sets from the arrays. All N instances of sets are stored in one single Array X. Now, I need to perform union set operations for all N sets. How could I achieve this?