From: Kent Sibilev Date: 2004-10-12T14:10:08+09:00 Subject: Re: ANN: Free-form-operators patch $ irb -r enumerator irb(main):001:0> (1..10).enum_slice(2).each do |v1, v2| irb(main):002:1* puts "#{v1} #{v2}" irb(main):003:1> end 1 2 3 4 5 6 7 8 9 10 => nil irb(main):004:0> Cheers, Kent. On Oct 12, 2004, at 12:44 AM, trans. (T. Onoma) wrote: > On Monday 11 October 2004 09:38 pm, Yukihiro Matsumoto wrote: > | |I'd be out-of-luck, and have to write all the Enumerable methods by > hand. > | | Can the Enumerable methods be defined to pass on arguments? i.e. > | | > | | �def select(*args) > | | � �each(*args) { ... > | > | No. �Something more than simple iteration must be done via > Enumerator, > | in my opinion. �If it would result the request for Enumerator > | enhancement, that's fine for me. > > Enumerator? > > T. > >