From: MonkeeSage Date: 2006-09-20T02:45:20+09:00 Subject: Re: Splat, #to_ary and #to_a Rick DeNatale wrote: > Sorry I haven't installed 1.9 myself, so I'm wondering if something like > > (1..10).to_a.values_at(3..5) > > still works the same way as it does in 1.8 (returning [4, 5, 6]) or > throws an exception saying that it can't convert a range to an integer > similar to the way 1.8 does with: > (1..10).to_a.values_at([3, 4, 5]) $ ruby19 -v && ruby19 -e "p (1..10).to_a.values_at(3..5)" ruby 1.9.0 (2006-09-19) [i686-linux] [4, 5, 6] Regards, Jordan