churf/sample-programs/basic-5
2023-02-09 20:23:49 +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);