From: Joel Pearson Date: 2013-01-25T06:14:15+09:00 Subject: Re: Enum#select with max number of items Not sure about one-liners, but you can replace the matches integer with new_arr.count / size / length -- Posted via http://www.ruby-forum.com/.