From: Christopher Dicely Date: 2010-09-08T00:05:35+09:00 Subject: Re: Enumerator#each return value is surprising On Tue, Sep 7, 2010 at 4:22 AM, David A. Black wrote: > I guess I'm not sure how else it could work, since anything else would > (I think) be a departure from the idea that the enumerator gets its each > logic not just from a particular object but from an object/method > combination. I always really thought of Enumerators as representing a sequence with the logic that produces the sequence being an implementation detail, but I see that perspective. More importantly, I see the utility of returning the underlying object in terms of making chained calls using intermediate methods that produce an enumerator work like regular iterator chaining. I'll need to think a bit about how that generalizes to some of the custom enumerators I'm doing.