On Feb 7, 2005, at 10:01 AM, Chris Gehlker wrote:

> Sam and Zach,
>
> I get your points. My question was how come the assignment back to 
> testAry doesn't replace it with an array of numbers. Here is a 
> different version of the program which may highlight the problem.

You miss understand what each() does.  It does return the array, but 
this is rarely used for anything more than chaining.  The block of 
each, does something with the members of the array, but it does not 
replace those members.  That's what map/collect are for.

Hope that helps.

James Edward Gray II