RosettaCodeData/Task/Remove-duplicate-elements/Objective-C/remove-duplicate-elements.m

4 lines
124 B
Objective-C

NSArray *items = [NSArray arrayWithObjects:@"A", @"B", @"C", @"B", @"A", nil];
NSSet *unique = [NSSet setWithArray:items];