ableos/hblang/examples/functions.hb
2024-05-11 16:04:13 +02:00

15 lines
148 B
Plaintext

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