Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #define valueOf(f, x) printf("Test: "#x" = %"#f"\n", x)
- #define lambda(f,u,c,k) ({ f y u c y(k); })
- int main(int arc, char **argv) {
- int num = 3;
- num = lambda(int, (int a), {
- return lambda(int, (int b), {
- return b + lambda(int, (int c), {
- return c + 10;
- }, b);
- }, a);
- }, num);
- lambda(void, (), { valueOf(d, num); }, NULL);
- exit(EXIT_SUCCESS);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement