On 04/04/2017 03:45 PM, Meta wrote:
I mean what goes on inside fold.

Ok. That's what I missed.

If you look at the C++ example it's
very concise and IMO beautiful:

<typename ...Args> auto f(Args ...args) { return (0 + ... + args); }

But the shown `fold` implements the functionality of that C++ language feature. That is, you have to compare `fold!"+"(args)` with `(0 + ... + args)`. The C++ version may be more beautiful, but verbosity seems about the same.

I think I accidentally sent this directly to your email, too. Sorry about that; Thunderbird's "answer" buttons can be confusing for me.

Reply via email to