James Gray
12/12/2005 3:19:00 AM
On Dec 11, 2005, at 9:14 PM, Dan Diebolt wrote:
>> # ... or ...
>> def sum( enum )
>> inject { |sum, n| sum + n }
>> end
>
> Don't you need enum. ?
>
> def sum(enum)
> enum.inject {|sum,n| sum+n}
> end
Oops. Yes. Thank you.
James Edward Gray II