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

Common Prefix Len

Find the length of the shared leading sequence of two numeric ID streams before producing a diff.

Source repository · Package JSON

Use Common Prefix Len

use vendor::common_prefix_len::common_prefix_len;

Run the example

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

fn main() {
    println!(common_prefix_len([4,7,9],[4,7,8]));
}

Expected output

2

Published versions

VersionPackageSource commitSHA-256
0.1.1Download ZIP · Browse filesdc06003135b08fae986a3cfa172aca74db5fb2e2adb96b4788e872d2c486299ea1698b4b19
0.1.0Download ZIP · Browse files6349f23784be95cdea1b8fee941cdfda2b85fec971f9ccc4b498b0aa412b7950d34ad849c9