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

Reply via email to