From: "Brian Schröder" Date: 2005-05-12T06:17:40+09:00 Subject: Re: object loops and what they return On 11/05/05, Eric Mahurin wrote: > Consider these loops: > > . { } > > where loop method is each, each_with_index, upto, downto, step, > and probably others. > > Although it is not documented, all of these look to return the > origninal object (collection or int). Does anybody find this > useful?? [snip] I use it occasionally for doing evil method chaining. Somewhere I heard it is evil, but sometimes its nice. So your proposal indeed allows for some nifty operations. regards, Brian -- http://ruby.brian-schroeder.de/ Stringed instrument chords: http://chordlist.brian-schroeder.de/