about summary refs log tree commit diff
path: root/tests/examples/y.lam
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/y.lam')
-rw-r--r--tests/examples/y.lam7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/examples/y.lam b/tests/examples/y.lam
new file mode 100644
index 0000000..996802d
--- /dev/null
+++ b/tests/examples/y.lam
@@ -0,0 +1,7 @@
+-- normal form              N
+-- weak normal form         Y
+-- head normal form         N
+-- weak head normal form    Y
+
+-- Y combinator
+\ f . (\ x . f (x x)) (\ x . f (x x))