Computer Science Canada Array trouble |
Author: | Clayton [ Fri Oct 27, 2006 7:26 pm ] | ||
Post subject: | Array trouble | ||
i have a function called add, and from wtd's tutorial, it should be able to take any number of integers and form them into an array, however, it doesnt seem to be working right. my code:
I keep getting an error on line 3 and I don't know why (I think it has something to do with "integers" but i dont know for sure.) |
Author: | wtd [ Fri Oct 27, 2006 9:55 pm ] | ||||||
Post subject: | |||||||
In your function, "integers" is an Array. When you use "each" it passes each element of the Array to the block in turn.
But then, you really should...
|