From: Robert Dober Date: 2010-05-31T17:44:47+09:00 Subject: Re: enumerator problem in 1.9.1 On Mon, May 31, 2010 at 10:34 AM, Robert Klemme 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.