From: "David A. Black" Date: 2009-02-10T21:45:12+09:00 Subject: Re: a better way to do this job? Hi -- On Tue, 10 Feb 2009, Julian Leviston wrote: > First doesn't take an argument I'm ruby. It does > If you're using rails enumerable mixin $ ruby19 -ve 'puts [1,2,3,4].first(2)' ruby 1.9.1p0 (2009-01-30 revision 21907) [i686-linux] 1 2 David -- David A. Black / Ruby Power and Light, LLC Ruby/Rails consulting & training: http://www.rubypal.com Coming in 2009: The Well-Grounded Rubyist (http://manning.com/black2) http://www.wishsight.com => Independent, social wishlist management!