On Wed, 14 Nov 2001, Robert Feldt wrote:

> On Wed, 14 Nov 2001, Alan Chen wrote:
> 
> > break also stops any subsequent yields to the block.  I think Niko 
> > just wants to skip the rest of the block for that yield.
> > 
I was a bit quick there. This shows it better:

irb(main):008:0> [1,2,3].each {|e| next if e == 2; p(e)}
1
3
[1, 2, 3]
irb(main):009:0> [1,2,3].each {|e| break if e == 2; p(e)}
1
nil

Or are you looking for seomthing else?

Regards,

Robert