summaryrefslogtreecommitdiff
path: root/ycomb.pez
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-02-07 17:56:25 +0100
committerlemon <lsof@mailbox.org>2025-02-07 17:56:25 +0100
commit61372b981933236805ad1464b12e138ec7fb7d5d (patch)
tree1a43bc73d3785fbe656e74b4a1b8fd69cbaefe93 /ycomb.pez
parent6047f56db82852f07e4f7e308af69fa80b1cc259 (diff)
parser: make read callback be buffered
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]]