summaryrefslogtreecommitdiff
path: root/ycomb.pez
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-06-16 11:51:46 +0200
committerlemon <lsof@mailbox.org>2025-06-16 11:51:46 +0200
commit2ae76e402eac4b451ce58ce41352def8ff2dffb9 (patch)
tree279eb649120701ab11b8c027709f0240038f78ae /ycomb.pez
parent3967fccab7a41f8218b7ba589eee470d7ab4972a (diff)
change lambda syntax {[a] x} -> $[a]{x}
Diffstat (limited to 'ycomb.pez')
-rw-r--r--ycomb.pez4
1 files changed, 2 insertions, 2 deletions
diff --git a/ycomb.pez b/ycomb.pez
index dff0f40..26fb037 100644
--- a/ycomb.pez
+++ b/ycomb.pez
@@ -1,5 +1,5 @@
-@Y: {[f] {[i] i[i]}[{[i] f[{[x] i[i][x]}]}]}
+@Y: $[f]{$[i]{i[i]}[$[i]{f[$[x]{i[i][x]}]}]}
-@fact: {[n] Y[{[f] {[n] n == 0 ? 1 : n * f[n - 1]}}][n]}
+@fact: $[n] {Y[$[f]{$[n] {n == 0 ? 1 : n * f[n - 1]}}][n]}
printf["%a\n", fact[5]]