[CM] bug in cycle pattern ??
rm at tuxteam.de
rm at tuxteam.de
Thu Mar 29 10:08:52 PDT 2012
On Thu, Mar 29, 2012 at 12:55:45PM +0200, stephane boussuge wrote:
> Hi,
Since noone answered so far ...
> i'm on grace 3.8.0 svn:1969M.
> cycle pattern have a strange comportment:
>
> if i evaluate many times next(make-cycle({1 2 3 4 5}))
> it output only 1 each time i evaluate .
>
> is it normal ??
To be expected. Every time you evaluate
next(make-cycle({1 2 3 4 5}))
* ---------------------
|
this -*
evaluate to a new cycle whose first element is one.
You need to create one cycle and call next on it serveral
times:
wheel-of-fortune = make-cycle(1 2 3 4 5 6)
next(wheel-of-fortune)
-> 1
next(wheel-of-fortune)
-> 2
etc.
HTH Ralf Mattes
> thanks
>
>
> Stéphane Boussuge
> s_boussuge at yahoo.fr
> www.stephaneboussuge.blogspot.com
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Cmdist mailing list
> Cmdist at ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist
More information about the Cmdist
mailing list