Hi,
In Ruby, String is mutable which allows to build large strings like this:
txt = ""
for ...
txt << "yet another line\n"
end
# do something with txt
The Julia the (bad) way I use is to do:
txt = ""
for ...
txt *= "yet another line\n"
end
# do something with txt
Which is very slow for a big string (because it build a new more and more
string at each iteration).
So is there another way to do it (in standard Julia)?
Or is there another type which could be used (something like a Buffer type
or Array type)?
Thank,
-- Maurice