From: Brian Candler Date: 2009-11-11T05:30:54+09:00 Subject: Re: RCR enumerable extra into core Rick Denatale wrote: > On Tue, Nov 10, 2009 at 10:47 AM, Brian Candler > wrote: >> other Enumerators. When you want a real array, then add .to_a to the >> end. > > And you base this ultimate conclusion on what? The OP was asking whether map(:foo) should return an Array or an Enumerator. I was trying to say that if you're ambivalent about this, one logical conclusion (or extreme viewpoint) is that you could always return an Enumerator, even for map { |x| x*x } I wasn't saying that Ruby does anything like this, and it's a tangent to the original thrust of map(:foo). -- Posted via http://www.ruby-forum.com/.