A category for NSArray with several functional methods you've seen in other languages.