hudl/NSArray-FunctionalHelper — pull request #4 by nathanhillyer (2014-09-23 22:00:46+00:00)
Title: Add flatten method to NSArray.

This adds a flatten method that will return a 1D array of items from a multidimensional array of arbitrary tree length. It flattens iteratively for up to 2 dimensions and then uses recursion for all odd dimensions greater than 2. Figured an efficient solution for 2 dimensions is all that will be necessary in the most common use case.