interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / seed / ng / front / runs / p-partok.om

25 lines · 435 bytes Raw Blame History
1om2
2note p-partok: as p-part with the last part in range (6, 2): exit status (x + y) mod 256
3fn sum a view uint * to ulong
4s = ulong 0
5for i ulong len a
6s = add s ulong get a i
7end
8ret s
9end
10fn bump a edit uint * v uint to void
11for i ulong len a
12put a i add get a i v
13end
14end
15fn main to int
16b = new uint 8 0
17for i ulong 8
18put b i uint add i 1
19end
20bump part b 4 2 100
21x = sum b
22y = sum part b 2 3
23z = sum part b 6 2
24ret int add x y
25end