Summary
Jason shares how his C++ meetup group tackled the challenge of creating a currying function in C++. Starting with a basic implementation that could only curry parameters once, they iteratively refined the solution through contributions from Ben Dean and Vaughn Cato. The final implementation is a concise 10-line function that can handle cascading parameter binding and intelligently decides whether to return a new function or invoke the callable based on parameter availability, all using C++20 features like concepts and variadic captures.
Related C++ Standard Sections
This episode covers topics found in these sections of the C++ standard:
-
[func.invoke]40% match