Le mercredi 01 janvier 2014 à 14:13 +0100, Samuele Carcagno a écrit :
> On Wednesday 01 Jan 2014 11:07:06 paul analyst wrote:
> > I need a vector of string of subtitles: col1, col2, col3, ..., col100000
> > How to join "col" phrase with numbers of  var(i) ( in the loop)
> 
> you can use the `string` function for that:
> 
> w = ["col" for i in 1:100000]
> 
> for i = 1:100000
>     w[i] = string(w[i], string(i))
> end
> 

Actually, even shorter:
[string("col", i) for i in 1:100000]


Regards

Reply via email to