diff options
author | tzlil <tzlils@protonmail.com> | 2023-04-14 23:46:53 +0300 |
---|---|---|
committer | tzlil <tzlils@protonmail.com> | 2023-04-14 23:46:53 +0300 |
commit | fdf35536b66499884dd5b4e1740ac67e5cebb1a2 (patch) | |
tree | b907edf782ebb58780d7fbfed084560626b94c74 /tests/examples/pairs-snd.lam |
add homework material
Diffstat (limited to 'tests/examples/pairs-snd.lam')
-rw-r--r-- | tests/examples/pairs-snd.lam | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/examples/pairs-snd.lam b/tests/examples/pairs-snd.lam new file mode 100644 index 0000000..b2f0a75 --- /dev/null +++ b/tests/examples/pairs-snd.lam @@ -0,0 +1,15 @@ +(\ pair fst snd . + + snd (pair a b) + + -- Should reduce to b +) + +-- pair +(\ x y f . f x y) + +-- fst +(\ p . p (\ x y . x)) + +-- snd +(\ p . p (\ x y . y)) |