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. Just checked the just-released 1.9.2-preview3 and it too seems to have the fix. -- Posted via http://www.ruby-forum.com/.