[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] Question about arrays



Hello list,

This code:
x=Array.fill(10, {arg s=10; 5.do{s=sin(s*(s-1))}; s=s+1;});

yields the same results as this:
x=Array.fill(10, {arg s; 5.do{s=sin(s*(s-1))}; s=s+1;});

i.e. the initial value of s seems to always be 0. Is there a way to start at a value other than 0?

Thanks!