Re: [Unicon-group] procedure to write generator's output

2003-10-30 Thread Hiroshi Shinohara
My history of learning Icon is, Pre-Icon AWK : My first programming Language What a wonderful structure! associative array is. Icon : My second programming Language 1) List : What a wonderful structure! list is. 2) Generator: Who needs a generator? How to use

Re: [Unicon-group] procedure to write generator's output

2003-10-28 Thread Louis Kruger
Is is a subtle problem. First of all you are not acually passing the generator into gen_out. The parameter gen is just taking numerical values, so inside the function, the line every ss := gen do { is actually only being evaluated once. But, the gen_out function itself is called 10 times.