From: "Florian Groß" Date: 2005-09-16T04:31:56+09:00 Subject: Re: ruby-dev suumary 26862-26956 Austin Ziegler wrote: > I think that it would not be a bad idea to add Enumerable#count as an > alias for Enumerable#nitems, as while #nitems is somewhat sensible, it > doesn't leap out as a "count items that are like this" method to me. I > would tend to favour #select with #size or #inject if said method does > not exist. Why not? I read it as "number of items" so being able to use a block seems natural. #count might still be a good idea, though -- I think people are going to try #count first.