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

Ean13 Digit

Derive the EAN-13 check digit from exactly twelve decimal data digits. Invalid input returns minus one.

Source repository · Package JSON

Use Ean13 Digit

use vendor::ean13_digit::ean13_digit;

Run the example

nest demo ean13_digit@0.1.1
blyxc native-run ean13_digit-demo/main.blyx
Example source and expected output
use vendor::ean13_digit::ean13_digit;

fn main() {
    println!(ean13_digit([4,0,0,6,3,8,1,3,3,3,9,3]));
}

Expected output

1

Published versions

VersionPackageSource commitSHA-256
0.1.1Download ZIP · Browse files3768cd5188c323b4ccefb9981e886c753d26e10bd4d0565b32a6391d343d6b7e36455f65b4
0.1.0Download ZIP · Browse files6349f2378401a54d9734f65792bb415b16a6dac0cbd6a4c5be14d03d4acd62de47a5c32451