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, ...]
?
Asked: 2015-11-11 18:51:31 +0200
Seen: 890 times
Last updated: Nov 11 '15