Subject: [bug] Array#first(symbol) doesn't raise?
From: Simon Strandgaard <neoneye adslhome.dk>
Date: Sun, 24 Oct 2004 22:18:39 +0900
irb(main):001:0> %w(a b c).first(:xyz)
=> ["a", "b", "c"]
irb(main):002:0> %w(a b c).last(:xyz)
=> ["a", "b", "c"]
This seems inconsistent to me. I would expect a TypeError.
--
Simon Strandgaard