Robert Dober wrote:
> On Mon, May 31, 2010 at 10:34 AM, Robert Klemme
> <shortcutter / googlemail.com> wrote:
>> I'd say it's a bug which seems to be reflected by the fact that it
>> works as expected in 1.9.3 according to Caleb.
> Even more so, as
> [5, 7].each_with_index.to_a.each_cons(2) {|v| p v }
> [[5, 0], [7, 1]]
> 
> Seems quite straight forward to me that the to_a should not change the
> semantics.
> R.

Thanks for all the responses. Where do I pick up 1.9.3 ? I don't see it
at ftp://ftp.ruby-lang.org/pub/ruby/1.9

-- 
Posted via http://www.ruby-forum.com/.