On Thursday, 14 May 2015 at 13:50:17 UTC, Adam D. Ruppe wrote:
On Thursday, 14 May 2015 at 13:26:27 UTC, ivoras wrote:
Is it resizable?
You can append with the ~= operator and size down by slicing it.
Apparently it doesn't even have an "insert" method:
http://dlang.org/phobos/std_array.html .
http://dlang.org/phobos/std_array.html#insertInPlace
is the one you'd use for that.
Ok, string[] and ~= work and it doesn't crash now.
Where would I look for documentation on the "~=" operator? It's
not described in http://dlang.org/phobos/std_array.html (though
it is mentioned so you need to know what you are looking for
before you find it...).
What would be the difference between Array!string and string[] ?