schala/source_files/recurse.maaru
2017-09-19 22:36:48 -07:00

25 lines
220 B
Plaintext

fn hella(x) {
print("hey")
if x == 3 {
Null
} else {
hella(x + 1)
}
}
hella(0)
fn fib(x) {
if x < 3 {
1
} else {
fib(x - 1) + fib(x - 2)
}
}
fib(10)