transversal sum

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Nov 7 03:33:47 PST 2014


Marc Schütz:

>         auto sums = input
>                 .transposed
>                 .map!(a => a.sum);

And that part is better written:

.map!sum;

I also suggest to align the leading dot to the precedent line:

         auto sums = input
                     .transposed
                     .map!(a => a.sum);

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list