After my initial post about currying in
was wondering whether it is possible to make a universal curry transformation
that will be applicable to any functor.
Fortunately, like most weird things, in C++ the answer to this question is yes.
Here, we’ll create a curry object from a lambda function:
And use it in all the different ways:
It allows only to split the function arguments into two sets. I might make it a
bit more powerful at some point. I’m a bit sleepy now.
Anyone interested in the code?