Given an NSArray of NSDictionary objects (containing similar objects and keys) is it possible to write perform a map to an array of specified key?
NSArray
NSDictionary
There is a special key-path operator for this: @unionOfObjects. Probably it replaced [collect] from previous versions.
@unionOfObjects
[collect]
Imagine a Transaction class with payee property:
Transaction
payee
NSArray *payees = [self.transactions valueForKeyPath:@"@unionOfObjects.payee"];
Apple docs on Array Operators in Key-Value coding.