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 / isbn-verifier / isbn-verifier.om
| 1 | note Exercism-style exercise "isbn-verifier": https://exercism.org/tracks/python/exercises/isbn-verifier |
| 2 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 3 | note isvalid is true when isbn, with its hyphens removed, is a valid ISBN-10: nine digits and a check |
| 4 | note digit or X (10), such that d1*10 + d2*9 + ... + d10*1 is divisible by 11. |
| 5 | note Check it with: sh exercise.sh exercises/isbn-verifier |
| 6 | om2 |
| 7 | fn isvalid isbn view uchar * to bool |
| 8 | note replace this line with your solution |
| 9 | trap 13 |
| 10 | end |