churf/sample-programs/basic-5
2023-02-10 16:45:33 +01:00

9 lines
122 B
Text

id x = x;
add x y = x + y;
double n = n + n;
apply f x = \y. f x y;
main = apply (id add) ((\x. x + 1) 1) (double 3);