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
omega-mv / tools / exp445 / arms / examples / has_digit / prompt
| 1 | Write a function has_digit that takes an unsigned 32-bit number n and an unsigned 8-bit number d and |
| 2 | returns true when one of the decimal digits of n is d, false otherwise. 0 has the single digit 0. |
| 3 | When d is larger than 9 the answer is false. It never traps. |