Hi,
Having a devil of a time trying to figure out how to assign a variable and 
increment a counter in a loop or process.  Easy enough in c, but really 
struggling to do this in scheme.

(define counter 0)
(define (bump-counter)  (process repeat 5 do(set! counter (+ counter 1))))
(bump-counter)

Something like that would be what I'm after.  Tried using LET, also declaring 
LET or SET outside the process or a loop but still within the definition, and 
no joy there.
Any help for the parenthetically challenged greatly appreciated.
Regards,Jim Hearon                                        
_______________________________________________
Cmdist mailing list
[email protected]
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Reply via email to