holey-bytes/hblang/examples/functions.hb

15 lines
148 B
Plaintext
Raw Normal View History

2024-05-11 09:04:13 -05:00
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;
}