repeat

Aziz K. aziz.koeksal at gmail.com
Tue Jan 18 05:27:14 PST 2011


Okay, so your arrayOf() function could be written as:

   auto arrayOf(T x, uint n){ return repeat([x], n); }

Only needs to wrap the argument inside another array literal.


More information about the Digitalmars-d mailing list