Blyx Nest Blyx language
Registry / Library
library · v0.1.1

Luhn Digits

Validate a sequence of decimal digits against the Luhn check digit, including its final digit.

Source repository · Package JSON

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

VersionPackageSource commitSHA-256
0.1.1Download ZIP · Browse filesaf9aadfa270af4ca591baa8c9386acbebb63e58fc2ebab65401166d4525aac2c10e90022d6
0.1.0Download ZIP · Browse files6349f237843269ba17ef42afec164ad11120da33bc47128547b26ef507b41ff6f22edf70af