~/talk

Curry for your Functions

Talkat CppCon 2015 · 2015-09-21..09-25· [functional-programming, c-and-cpp]
slides:none on file

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

  1. 0:00Start
  2. 1:09What Is Currying
  3. 2:06Function Evaluation
  4. 3:24Anonymous Partial Function
  5. 13:05Try To Invoke Functions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.