@jws It doesn't, since it yields NSUIntegers, not NSNumbers. It *does* offer enumerateWithBlock:, though, and I might switch to that depending on whether dispatching a block from within a block and mutating a property from within is safe.
@joemmac Fortunately, I’m at a stage in my career where I can just reply “No” to such asinine requests :-) I’ve got some designers quite excited at the potential of no longer having to rasterize control designs and render 1x and 2x versions [www.paintcodeapp.com].
@clarkgoble Hmm. Python generators are about reentrance, though (and generative values, obviously)—the magic of yield, if you will. I’ll revisit the RC docs to see how streams map; I wasn’t struck by any similarities when reading them last year.
@redqueencoder No, I’m working in Objective-C. I just wanted a reentrant method for enumerating/iterating an ordered collection, but only because I was looking at efficient ways to work NSRange into NSFastEnumeration. I just used a for :-/
@clarkgoble There’s some fun stuff in that implementation, like the case label in the middle of the while inside the switch! :-P Too much for me to pull in for the limited scope of my immediate problem. Reading Listed for later, thanks! :-)