Eliminate redundancy of dup/idup
Piotr Szturmaj
bncrbme at jadamspam.pl
Sun Sep 9 09:37:57 PDT 2012
Timon Gehr wrote:
> -1 for removing .idup, it is handy.
auto idup(E)(const(E)[] arr) pure @trusted
{
immutable result = arr.dup();
return result;
}
:-)
More information about the Digitalmars-d
mailing list