interplane.Get Omega
Read in your language

omega-mcp

aien-dev/omega-mcp

Brought by drakestapleton

branch main Branches Tags History

omega-mcp / data / examples / calls.om

17 lines · 266 bytes Raw Blame History
1note recursion, a void function, ret with and without a value, grouping parentheses
2fn fib n uint to uint
3if lt n 2
4ret n
5end
6ret add (fib sub n 1) (fib sub n 2)
7end
8fn nothing v uint to void
9if gt v 1
10ret
11end
12end
13fn main to int
14nothing 3
15x = (fib 10)
16ret int x
17end