On Sun, Nov 14, 2010 at 4:55 PM, timr <timrandg / gmail.com> wrote:
> solve_by_iter { |test| =A0lambda{puts test; exit}.call if (1..6).all?{|
> num| test%num =3D=3D (num-1)} }

try,

  solve_by_iter { |test|  break(lambda{puts test}.call) if
(1..6).all?{|num| test%num =3D=3D (num-1)} }

rare code, rare solution :)

kind regards -botp