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 / arrays.om

20 lines · 349 bytes Raw Blame History
1note a local array (new), a global pool, view and edit parameters, get, put and len
2global tot ulong 1
3fn sum a view uint 4 to uint
4s = uint 0
5for i ulong len a
6s = add s get a i
7end
8ret s
9end
10fn fill a edit uint 4 to void
11for i ulong 4
12put a i uint add i 1
13end
14end
15fn main to int
16a = new uint 4 0
17fill a
18put tot 0 ulong sum a
19ret int get tot 0
20end