Robert Klemme schreef op 20-11-2014 15:59:
> On Thu, Nov 20, 2014 at 3:26 PM, Chris Hulan <chris.hulan / gmail.com> wrote:
>> naming is important
>> you have a function 'sum' with a variable 'sum'
>> the interpreter is calling the function where you expect it to use the
>> variable
> He is simply invoking #inject on the wrong object (i.e. result of
> recursively invoking sum).
>
> Cheers
>
> robert
>
>

Thanks,

I had to do numbers.inject

One other problem.
The method schould reject everything which is not a integer.
numbers.inject gives a error if you do sum (1,"a", 2)

Roelof