From: "Jonas Pfenniger (zimbatm)" Date: 2011-01-11T00:14:18+09:00 Subject: Re: Best way for Array#find+transform ? 2011/1/10 David J. Hamilton : > My version is slightly verbose.  As w_a_x_man@yahoo.com implicitly pointed out > in their version, the false in the block is actually unnecessary, since the > conditional will evaluate to nil, thus allowing the iteration to continue. Right, now we have the perfect version :) > Break is indeed nice.  And of course you can sometimes do the same thing with > return, although I think it's usually much cleaner to break out of blocks rather > than returning out of them (and the method in which they're evaluated). Yeah I agree, return is less clean because it doesn't express the intent of exiting that particular algorithm. Thanks all for your participation ! Cheers, zimbatm