From: Trans Date: 2008-11-03T06:13:25+09:00 Subject: Re: ruby1.9: lazy versions of Enumerator#select and friends? On Nov 2, 4:00 pm, Brian Candler wrote: > Thomas Sawyer wrote: > > On Nov 2, 11:41 am, Brian Candler wrote: > >> end > >> end > > > This doesn't work. > > Sorry, which bit doesn't work? > > $ ruby19 -v > ruby 1.9.1 (2008-10-28 revision 19983) [i686-linux] Interesting. Clearly there is something substantially different in 1.9's version. I added require 'enumerator' and using 1.8.6, I expected it would work the same. But get :13:in `initialize': wrong number of arguments (0 for 1) (ArgumentError) from t.rb:13:in `new' from t.rb:13:in `lselect' from t.rb:44 Enumerator.new() wants an enumerable object as an argument --what is 1.9 doing without it? T.