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 / luhn / luhn.om
| 1 | note Exercism-style exercise "luhn": https://exercism.org/tracks/python/exercises/luhn |
| 2 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 3 | note valid is true when s, after removing spaces, is at least two decimal digits (and nothing else) |
| 4 | note that pass the Luhn checksum. |
| 5 | note Check it with: sh exercise.sh exercises/luhn |
| 6 | om2 |
| 7 | fn valid s view uchar * to bool |
| 8 | note replace this line with your solution |
| 9 | trap 13 |
| 10 | end |