Created
May 25, 2014 06:54
-
-
Save lshort/d76136534eade679d27a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto incr = [](auto a) {return a+1;}; | |
int add1(int x) { return x+1; } | |
int sub1(int x) { return x-1; } | |
auto ident = _L(add1) * _L(sub1); | |
auto ident2 = incr * _L(sub1); | |
cout << ident(1) << "," << ident2(1) << endl; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment