github/ReactiveCocoa — pull request #119 by Coneko (2012-11-20 17:09:39+00:00)
Title: Added <RACStream> implementation for NSArray.

(Reopening #110 since #92 was merged in master.)

It doesn't make sense to me that the only way to treat an `NSArray` as a stream is 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 really wasn't any 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.