Turn the function what into a curried function.
static float foo(int a, string b, float c) @safe pure nothrow @nogc { return a + b.length + c; } alias foo_ = autocurry!foo; // overloads the auto-curried foo with the original foo assert(foo_(52)("alpha")(1) == 58);
https://stackoverflow.com/questions/58147381/template-for-currying-functions-in-d
See Implementation
Turn the function what into a curried function.