On Feb 7, 2005, at 9:12 AM, James Edward Gray II wrote:

> 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

Yes, you and Sam and Zach finally helped me see the light. Thanks so 
much.

--
Conscience is thoroughly well-bred and soon leaves off talking to those 
who do not wish to hear it.
-Samuel Butler, writer (1835-1902)