The repeat function in julia is used to replicate a vector a number of specified times. What if I want to repeat an integer instead of a vector?
For example,
repeat([1,2,3],3)
gives
9-element Array{Int64,1}: 1 2 3 1 2 3 1 2 3
What I want now is to repeat an integer many times. How is this possible?