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 / prompt

3 lines · 260 bytes Raw Blame History
1Write a function has_digit that takes an unsigned 32-bit number n and an unsigned 8-bit number d and
2returns true when one of the decimal digits of n is d, false otherwise. 0 has the single digit 0.
3When d is larger than 9 the answer is false. It never traps.