Hi Everyone,
Can the "for each" form of the repeat structure be used to transform
one itemized list into another?
For example, if variable X = 2, 4, 6, I'd like to create variable Y
as the square of the items of X, so that Y = 4, 16, 36.
I tried doing this:
Repeat for each item i in X
put i^2 into item i of Y
end repeat
But what I get is a long list of commas (empty items) and a single
number at the end (36).
Any thoughts on this?
Regards,
Greg
_________________________________________
Gregory Lypny
Associate Professor of Finance
Concordia University
_________________________________________
"Take chances, make mistakes!"
- Ms Frizzle, The Magic School Bus
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.