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 / si / rosetta / exercises / armstrong-numbers / armstrong-numbers.om
| 1 | note Exercism-style exercise "armstrong-numbers": https://exercism.org/tracks/python/exercises/armstrong-numbers |
| 2 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 3 | note Return true when n equals the sum of its digits, each raised to the number of digits. |
| 4 | note Check it with: sh exercise.sh exercises/armstrong-numbers |
| 5 | om2 |
| 6 | fn armstrong n ulong to bool |
| 7 | note replace this line with your solution |
| 8 | trap 13 |
| 9 | end |