The Many Faces of D - slides

Walter Bright newshound2 at digitalmars.com
Sun Oct 3 23:35:11 PDT 2010


Simen kjaeraas wrote:
> auto sum( R )( R range ) {
>     return reduce!"a+b"( 0, range );
> }

This can be defined instead as:

alias reduce!"a+b" sum;


More information about the Digitalmars-d mailing list