summaryrefslogtreecommitdiff
path: root/ycomb.pez
diff options
context:
space:
mode:
Diffstat (limited to 'ycomb.pez')
-rw-r--r--ycomb.pez5
1 files changed, 5 insertions, 0 deletions
diff --git a/ycomb.pez b/ycomb.pez
new file mode 100644
index 0000000..dff0f40
--- /dev/null
+++ b/ycomb.pez
@@ -0,0 +1,5 @@
+@Y: {[f] {[i] i[i]}[{[i] f[{[x] i[i][x]}]}]}
+
+@fact: {[n] Y[{[f] {[n] n == 0 ? 1 : n * f[n - 1]}}][n]}
+
+printf["%a\n", fact[5]]