github/ReactiveCocoa — pull request #110 by Coneko (2012-11-10 13:00:57+00:00)
Title: Added <RACStream> implementation for NSArray.

Depends on #92, c.f. #107, #108.

Thinking about it longer, it doesn't make sense to me that the only way to treat an `NSArray` as a stream would be to convert it into a `RACSequence`.

I also realized what I did in my own code, converting arrays to subscribables to be able to compose on them, was also wrong and because`` already defines a method to go from an array of subscribables to a subscribable of arrays (well of tuples, but those are much more similar to arrays than either of the other two), there's really no need to. What made me do it at first was that the syntax ended up being more concise because of the methods `` had that `NSArray` didn't.

From a practical point of view, since the basic "list" collection class for cocoa is `NSArray`, you are going to work with them relatively often, and being able to treat them as streams would be handy.

All three are distinct and have properties the others don't. Subscribables are push based, sequences are lazy and arrays are indexable.

Given all these disjointed thoughts, I propose implementing `` on `NSArray` as well.