From: Yohanes Santoso Date: 2002-12-17T09:07:08+09:00 Subject: Re: How to return value from middle of a block? Jim Freeze writes: > Is there a syntax for returning a value from the middle of > a block? I know that I can always set a return value and Is this what you're looking for? def bar 100.times{|i| puts yield i} end def foo if arg < 10 return 10 #explicit return end arg #implicit return end bar{|i| foo(i)} YS.