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

Re: [sc-users] iteration with iterator



On Thu, Sep 23, 2010 at 7:46 AM, e deleflie <edeleflie@xxxxxxxxx> wrote:
or ..

(0..3).do {  arg i;
   a[i].freq = d[i].x ;
 }


If your start value is 0, you can write simply 3.do { ... }, or if that feels strange to write,

do(3) { ... }

SC is not Java/C. ;)
hjh



--
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman

blog: http://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks