really silly question
John Hinsley
jhinsley at telinco.co.uk
Fri Aug 31 03:49:12 UTC 2001
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
--
Can't cope anymore? Desperate for help?
Join the 12 step program for those who yearn to give up Microsoft:
http://home.earthlink.net/~penguinrox/index.html
More information about the Squeak-dev
mailing list
|