Fix bug found in project 04

This commit is contained in:
Jan-Niclas Loosen
2026-01-16 13:50:04 +01:00
parent 20ff73a29c
commit a2cc0adb52
54 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
let f(x, y) {
if (x == 0) then
let g(x, z) {
x * y + z
} in g(2 * y, x)
else
x + 1
}
g (a, i) {
while (i > 0) do {
a = a * f(a, i);
i = i - 1
};
a + 42
}
in f (1, 2); g(3, 3)