On Wednesday, 14 February 2018 at 08:53:31 UTC, drug wrote:
It's sadly that using most C++17 features fails to provide clean and compact solution...
I don't usually use iostream, but this "challenge" was a reasonable fit for it. If you look over the 4 submissions then the iostream one provides the best encapsulation of the problem:
http://coliru.stacked-crooked.com/a/4675a74c8124750fC++ blogposts tend to choke on features... usually not good examples of maintainable code.