Sorry dude. Imust have been having an odd day. I swear my irb said it  
don't work :)

Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/

On 11/02/2009, at 7:06 AM, Ryan Davis <ryand-ruby / zenspider.com> wrote:

>
> On Feb 10, 2009, at 04:21 , Julian Leviston wrote:
>
>> First doesn't take an argument I'm ruby. It does
>> If you're using rails enumerable mixin
>
>
> David showed it in 1.9... but I had to point this out:
>
> % ruby -ve 'puts [1,2,3,4].first(2)'
> ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]
> 1
> 2
>
> this goes back to at least 1.7 iirc. #first was introduced in 1.6  
> and 1.7 gave it an optional length arg.
>
>