From: Werner Date: 2007-11-11T12:10:14+09:00 Subject: Re: The Man or Boy Recursion Test > # Man or boy test > def a(k, x1, x2, x3, x4, x5) > b ||= Proc.new { k -= 1; a(k, b, x1, x2, x3, x4) } > return k <= 0 ? x4[] + x5[] : b[] > end > > puts a(10, Proc.new {1}, Proc.new {-1}, Proc.new {-1}, Proc.new {1}, > Proc.new {0}) > Thank you very much! I am impressed. Best Regards Werner Dahn