C++14 standard:
auto add = [](auto x) { return [x](auto y) { return x + y; }; };
auto addFive = add(5);
auto result = addFive(3);