23 lines
227 B
Plaintext
23 lines
227 B
Plaintext
main := fn(): int {
|
|
return fib(10);
|
|
}
|
|
|
|
fib := fn(n: int): int {
|
|
a := 0;
|
|
b := 1;
|
|
loop {
|
|
if n == 0 {
|
|
break;
|
|
}
|
|
c := a + b;
|
|
a = b;
|
|
b = c;
|
|
n -= 1;
|
|
|
|
stack_reclamation_edge_case := 0;
|
|
|
|
continue;
|
|
}
|
|
return a;
|
|
}
|