From: Robert Dober Date: 2009-06-04T03:18:00+09:00 Subject: Re: return in iterator in lambda I am not sure what you want to do? Do you want to return, than I think the above might work with some tweaking for the non break case, sorry I was lazy. Or do you just want to break, but than it will not work in Ruby1.9? Please avoid "for" it confuses me, please use each for my poor brain ;). Anyway what about this catch( x ) do values.each do throw your_value if some_condition end some more code end Nahh, I guess if you refactor this into methods it will just be simpler ;) or use Joel's #find if you can, that might give some clean code too :) Cheers Robert -- Toutes les grandes personnes ont d’abord été des enfants, mais peu d’entre elles s’en souviennent. All adults have been children first, but not many remember. [Antoine de Saint-Exupéry]