interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / exercises / luhn / luhn.om

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