From: Bug Free Date: 2010-06-02T02:32:49+09:00 Subject: Re: enumerator problem in 1.9.1 Robert Dober wrote: > I am afraid that is incorrect :( > ruby -ve '[5, 7].each_with_index.each {|a| p a}' > ruby 1.9.2dev (2010-05-31 revision 28117) [i686-linux] > 5 > 7 However, with the each_cons we get: ruby -ve '[5, 7].each_with_index.each_cons(2) {|a| p a}' ruby 1.9.2dev (2010-05-31 revision 28117) [x86_64-linux] [[5, 0], [7, 1]] -- Posted via http://www.ruby-forum.com/.