On Sunday 07 August 2005 2:49 pm, Nikolai Weibull wrote:
> Kirk Haines wrote:
> > module Kernel
> >         def returning(*vals)
> >                 yield *vals
> >         end
> > end
>
> That'd return the last value of the block, not the value passed to
> returning.

Yeah.  I was typing from memory and I left off that important little last bit.

Ah well.  My point was yours.  It's easy to implement and works both ways.


Kirk Haines