Data update

This commit is contained in:
Ingy döt Net 2024-10-16 18:07:41 -07:00
parent 81fd053722
commit 52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions

View file

@ -1,12 +1,10 @@
fun ackermann = int by int m, int n
return when(m == 0,
n + 1,
when(n == 0,
ackermann(m - 1, 1),
ackermann(m - 1, ackermann(m, n - 1))))
end
for int m = 0; m <= 3; ++m
for int n = 0; n <= 6; ++n
writeLine("Ackermann(" + m + ", " + n + ") = " + ackermann(m, n))
fun ackermann ← <int m, int n|when(m æ 0,
n + 1,
when(n æ 0,
ackermann(m - 1, 1),
ackermann(m - 1, ackermann(m, n - 1))))
for int m ← 0; m ≤ 3; ++m
for int n ← 0; n ≤ 6; ++n
writeLine("Ackermann(" + m + ", " + n + ") = ", ackermann(m, n))
end
end