From: timr Date: 2010-11-14T19:20:14+09:00 Subject: Re: Is it possible to break a loop from within an internal lambda function? Thanks skye and botp. Both interesting solutions. I also found this: http://www.skorks.com/2010/05/ruby-procs-and-lambdas-and-the-difference-between-them/ "We get a LocalJumpError, what happened? Well, the break keyword is used to break out of iteration, and we didn't have an iterator around our proc, so we couldn't break out of anything, so Ruby tries to punish us with an error. If we put an iterator around our proc, everything would be fine:" It gave me a better understanding of subtleties of lambdas and Procs. Though, it looks like to make it work an iterator has to wrap the calling of the proc more directly. I'll have to play with that more to understand why. For the time being, I think break(lambda{}.call) is the simplest solution.