From: Robert Dober Date: 2010-06-02T04:45:40+09:00 Subject: Re: enumerator problem in 1.9.1 On Tue, Jun 1, 2010 at 7:32 PM, Bug Free wrote: > 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]] > -- Funny indeed... -- The best way to predict the future is to invent it. -- Alan Kay