Repeating a List

Can you repeat a list N times?

E.g. [1,2,3] repeated 2 times is [1,2,3,1,2,3]

Here’s one. Credit to another user (I don’t remember whom) for concatenating a list. I just added the modular math part to repeatedly use the indices for the original list.

1 Like

Copy paste this:

Since then, if you don’t need to repeat too many times, you can just use join( ):