Registry / Library

library · v0.1.1
Luhn Digits
Validate a sequence of decimal digits against the Luhn check digit, including its final digit.
Use Luhn Digits
use vendor::luhn_digits::luhn_digits;
Run the example
nest demo luhn_digits@0.1.1
blyxc native-run luhn_digits-demo/main.blyx
Example source and expected output
use vendor::luhn_digits::luhn_digits;
fn main() {
println!(luhn_digits([7,9,9,2,7,3,9,8,7,1,3]));
}
Expected output
true
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | af9aadfa27 | 0af4ca591baa8c9386acbebb63e58fc2ebab65401166d4525aac2c10e90022d6 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | 3269ba17ef42afec164ad11120da33bc47128547b26ef507b41ff6f22edf70af |