holey-bytes/hblang/examples/if_statement.hb

12 lines
125 B
Plaintext

main := ||: int {
return fib(10);
}
fib := |x: int|: int {
if x <= 2 {
return 1;
}
return fib(x - 1) + fib(x - 2);
}