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.
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
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | dc06003135 | b08fae986a3cfa172aca74db5fb2e2adb96b4788e872d2c486299ea1698b4b19 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | be95cdea1b8fee941cdfda2b85fec971f9ccc4b498b0aa412b7950d34ad849c9 |