Slide 15
Slide 15 text
declarative programming
• tell the “machine” what you would like to
happen, and let the machine figure out how
to do it
id *decoratedNames = [@[@"apple", @"google", @"microsoft"]
! ! ! ! ! map:^id(NSString *name){
! ! ! ! ! ! return [name uppercaseString];
! ! ! ! ! }];
// decoratedNames: @[ @"APPLE", @"GOOGLE", @"MICROSOFT" ]
Monday, 8 July 13