So, what's an elegant solution to this? I looked up std.traits but nothing seems to help. (Tried arity, no avail.)
There's this[1] PR which implements exactly what you want, but it's currently not passing the auto-tester.
1. https://github.com/D-Programming-Language/dmd/pull/5201
