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 / tools / exp445 / arms / examples / has_digit / program.omegese

11 lines · 157 bytes Raw Blame History
1fn has_digit n uint d uchar to bool
2t = uint d
3found = eq rem n 10 t
4while ge n 10 bound 10
5n = div n 10
6if eq rem n 10 t
7found = true
8end
9end
10ret found
11end