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 / bench / inference_cost / tasks / task18 / reference.om

9 lines · 124 bytes Raw Blame History
1fn reverse_digits_u32 n uint to uint
2r = uint 0
3v = n
4while gt v 0
5r = add (mul r 10) (rem v 10)
6v = div v 10
7end
8ret r
9end