Curry for your Functions
summary
Library shows a concrete C++14 implementation of currying: curlike curry(fn) returns a binder that stores a tuple of bound arguments and lets callers partially apply functions (examples: 2-arg subtract, 3-arg multiply-accumulate, zero-arg rebind). Implementation uses make_index_sequence to expand tuple elements and a SFINAE/decltype dispatch to detect when the stored+new arguments form a callable; code compiles and the examples run, and client code integrates with transform/map.
AI-written summary · about
chapters (5)
- 0:00Start
- 1:09What Is Currying
- 2:06Function Evaluation
- 3:24Anonymous Partial Function
- 13:05Try To Invoke Functions
related talks
01h 16mFunctional Composition Beyond Monads
46mPractical Functional Programming in C++
01h 02mHigher-order Functions in C++: Techniques and Applications
01h 03mHigher order functions for ordinary C++ developers
04mGeneralized fold expressions
01h 31mFunctional Programming in Modern C++: The Imperatives Must Go!
01h 47mFunctional C++
55mCustom Overload Sets and Inline SFINAE for Truly Generic Interfaces
