I use a lot of lengthy awvPlotWaveform commands in my Ocean scripts and I'm constantly wrestling with lists for strips and colors etc. where I'm suffering with out by one counts and other such annoyances. I had made a post previously whereby Andrew Beckett provided me with a way to make a list of repeated elements using:
procedure(RepeatElement(element ntimes)
let((result)
for(i 1 ntimes result=cons(element result))
result
)
)
but now I'm finding myself wanting to make a list made up of a repeated sequences. Say I make a list of colors xx=list(Red Green Blue) - I want to repeat that 8 times so that I end up with a single list containing 24 elements consisting of (Red Green Blue Red Green Blue Red Green Blue ... ). How do I do this?