string initialization question.
Philippe Sigaud
philippe.sigaud at gmail.com
Fri Jul 30 15:06:44 PDT 2010
>
>
> I don't know where such a tool should finally be placed in D, but I having
> it
> available as a library or as part of the language would be great. It seems
> like a
> lot of other languages have it like python, perl, C++, and Java. So it
> can't be
> that useless.
>
There is fill() in std.algorithm, but it needs an already present range...
auto s = new int[5];
fill(s, 10);
s is now [10,10,10,10,10]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20100731/5b605fab/attachment.html>
More information about the Digitalmars-d-learn
mailing list