list of curves in do-loop



> < f(n) := block(
> <     [curves : [], i],
> <     for i:1 thru n do curves : cons(x^i, curves),
> <     plot2d(curves, [x,-1,1])
> < )$
> < 
> < It helped me already a lot, but I have a question in order to understand 
> < what's going on.
> < 
> < Why the statement with i in:
> < 
> <  [curves : [], i], 
> 
> block([curves:[],i], ...)
> 
> sets up curves and i as variables local to the block, and initializes
> curves to the empty list.




As an additional comment, variable i does not need to be declared as
local, since statement 'for' creates its own local counter i.

-- 
Mario