From: Michael Neumann Date: 2001-08-25T20:03:22+09:00 Subject: [ruby-talk:20361] Re: Iterators (was Re: ++ Operator) Dave Thomas wrote: > Brian Marick writes: > > > At 08:55 AM 8/24/01, you wrote: > > >Have you seen knu's 'iterator.rb' module in rough/lib? > > You have to get it via CVS: > > cvs.ruby-lang.org/src co rough Will this find it's way into Ruby 1.8 ? What about a Python-like method "zip" (could be written using iterator.rb): zip( [1,2,3], [4,5,6], [7,8,9] ) do |group| p group end # => [1,4,7] [2,5,8] [3,6,9] Regards, Michael -- Michael Neumann merlin.zwo InfoDesign GmbH http://www.merlin-zwo.de