When to use lambda, when to use Proc.new?

Another important but subtle difference between procs created with lambda and procs created with Proc.new is how they handle the return statement: In a lambda-created proc, the return statement returns only from the proc itself In a Proc.new-created proc, the return statement is a little more surprising: it returns control not just from the proc, … Read more