Implementation of common Ruby Enumerable module methods as a category in Objective-C