[CM] bug in cycle pattern ??

Heinrich Taube taube at illinois.edu
Thu Mar 29 12:40:55 PDT 2012

yes thanks! ralph's example was good. you should create a pattern ONE  
time, but read from it as many times as you like

; create a pattern
   with mypat = next(make-cycle({1 2 3 4 5}))

   ; read 10 elements
   loop repeat 10


; its also possible to read a bunch of items using the next function  
itself, for example this reads 50 items from one pattern

next(make-cycle({1 2 3 4 5}), 50)

apologies i have a few pending messages to reply to -- ill try to get  
through them by tomorrow!

More information about the Cmdist mailing list