ponce:

I'm not familiar with the terse, range-heavy, UFCS style that has emerged from Phobos

In Rosettacode I have inserted tons of examples of that coding style.

An example, given a tuple of arbitrary length, with items all of the same type, how do you compute the total of its items?

The last way I've invented is:

myTuple[].only.sum

It's also @nogc. But it causes a little of template bloat.

Bye,
bearophile

Reply via email to