map, filter, fold, and detect for Cocoa collections