Jon Hylands wrote:
Try:
thirdArray := (1 to: firstArray size) collect: [:index | (firstArray at: index) + (secondArray at: index)]
Thanks Jon
I'm coming rapidly to the realisation that I find it very difficult to internalise iterations (and not only in Smalltalk!).
I wonder how common this is?
I guess one way round it would be to find a good source of short examples. Anyone know of one?
Cheers
John