Fix first unnecessary supercombinator

This commit is contained in:
Martin Fredin 2023-02-09 17:53:39 +01:00
parent 7a2404cf74
commit ce31e4d490
10 changed files with 66 additions and 51 deletions

2
sample-programs/basic-1 Normal file
View file

@ -0,0 +1,2 @@
f = \x. x+1;

4
sample-programs/basic-2 Normal file
View file

@ -0,0 +1,4 @@
add x = \y. x+y;
main = (\z. z+z) ((add 4) 6);

2
sample-programs/basic-3 Normal file
View file

@ -0,0 +1,2 @@
main = (\x. x+x+3) ((\x. x) 2)

2
sample-programs/basic-4 Normal file
View file

@ -0,0 +1,2 @@
f x = let g = (\y. y+1) in g (g x)

9
sample-programs/basic-5 Normal file
View file

@ -0,0 +1,9 @@
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);