Add simple NSSet example.

This commit is contained in:
Levi Bostian 2013-12-23 02:19:18 -06:00
parent 8bd91cb6e2
commit ce770c61df

View File

@ -146,6 +146,10 @@ int main (int argc, const char * argv[])
[mutableSet addObject:@"Hello"]; [mutableSet addObject:@"Hello"];
NSLog(@"%@", mutableSet); // prints => {(Hello)} NSLog(@"%@", mutableSet); // prints => {(Hello)}
// Set object
NSSet *set = [NSSet setWithObjects:@"Hello", @"Hello", @"World", nil];
NSLog(@"%@", set); // prints => {(Hello, World)}
/////////////////////////////////////// ///////////////////////////////////////
// Operators // Operators
/////////////////////////////////////// ///////////////////////////////////////