holey-bytes/hblang/examples/functions.hb
2024-05-11 22:22:12 +02:00

15 lines
154 B
Plaintext

main := fn(): int {
return add_one(10) + add_two(20);
}
add_two := fn(x: int): int {
return x + 2;
}
add_one := fn(x: int): int {
return x + 1;
}