From: Eleanor McHugh Date: 2009-03-07T01:03:11+09:00 Subject: Re: Any solutions to Ruby's inconsistencies? On 6 Mar 2009, at 12:28, Albert Schlef wrote: > Eleanor McHugh wrote: >> Collect makes much more sense to me than map as I'm collecting a >> bunch >> of results and storing them in an array. > > You're describing #select.... Actually the description is sufficiently generic to be valid for both select and collect. With select obviously the results will be a subset of the enumerator contents whereas with collect it will be a transformed copy of the enumerator contents, but in both cases I'll have a new array containing a set of results harvested from the original enumerator. Ellie Eleanor McHugh Games With Brains http://slides.games-with-brains.net ---- raise ArgumentError unless @reality.responds_to? :reason