Map, Filter and Reduce in Cocoa (via Important Shock)

After working in Scheme, Python or Ruby, all of which (more or less) support function objects and the map(), filter() and reduce() functions, languages that don't seem to be somewhat cumbersome. Cocoa manages to get these paradigms almost correctly implemented. map() One would think that Objective-C's ability to pass functions around as objects in the form of selectors would make writing a map() method easy. Observe, however, the crucial differen … Read More

via Important Shock

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.