From: botp Date: 2010-11-14T18:36:34+09:00 Subject: Re: Is it possible to break a loop from within an internal lambda function? On Sun, Nov 14, 2010 at 4:55 PM, timr wrote: > solve_by_iter { |test|  lambda{puts test; exit}.call if (1..6).all?{| > num| test%num == (num-1)} } try, solve_by_iter { |test| break(lambda{puts test}.call) if (1..6).all?{|num| test%num == (num-1)} } rare code, rare solution :) kind regards -botp