diff options
| author | 2025-06-16 11:51:46 +0200 | |
|---|---|---|
| committer | 2025-06-16 11:51:46 +0200 | |
| commit | 2ae76e402eac4b451ce58ce41352def8ff2dffb9 (patch) | |
| tree | 279eb649120701ab11b8c027709f0240038f78ae /ycomb.pez | |
| parent | 3967fccab7a41f8218b7ba589eee470d7ab4972a (diff) | |
change lambda syntax {[a] x} -> $[a]{x}
Diffstat (limited to 'ycomb.pez')
| -rw-r--r-- | ycomb.pez | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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]] |