diff options
author | c+1 | 2023-05-11 15:00:29 -0400 |
---|---|---|
committer | c+1 | 2023-05-11 15:00:29 -0400 |
commit | 3331b9c14fc441f38c2578bd4abee63e3644b114 (patch) | |
tree | e21692edc8c00d83797a465eeea3b4c66d95de5f /examples | |
parent | 5d17d0206593a2c1f9b702991abf42a8848a2d7f (diff) |
HACK THE HALK
Diffstat (limited to 'examples')
-rw-r--r-- | examples/functional.halk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/functional.halk b/examples/functional.halk new file mode 100644 index 0000000..758559c --- /dev/null +++ b/examples/functional.halk @@ -0,0 +1,9 @@ +[the Y combinator, implemented in HALK. Note the +use of '=>' instead of '->', to denote a function +whom's arguments are immutable.] + +let.Y => { + λ.f => { + λ.x => f.x.x; + }.λ.x => f.x.x; +} |