Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Create a periodic vector/array

What is the quickest way to create an array of length 999 such as the following:

[0, 2, 7, 0, 2, 7, 0, 2, 7, ...]

?