From: Roger Pack Date: 2008-02-05T06:21:56+09:00 Subject: Re: ruby wish-list > irb(main):002:0> for p,i in programs.to_enum(:each_with_index) > irb(main):003:1> puts p, i > irb(main):004:1> end nice >> Then you wouldn't have to remember syntax again, ever :) > > I don't see the difference - I mean, you have to remember both ways, > don't you? perhaps with this way you can 'always' use one way, if you have any question of which would work. Just thinking out loud. Thanks for your timely reply. -Roger -- Posted via http://www.ruby-forum.com/.