Registry / Library

library · v0.1.0
KeyDuplicates
Find repeated primary-key occurrences in an offline table export.
Use KeyDuplicates
use vendor::keyduplicates::keyduplicates;
Run the example
nest demo keyduplicates@0.1.0
blyxc native-run keyduplicates-demo/main.blyx
Example source and expected output
use vendor::keyduplicates::keyduplicates;
fn main() {
let keys = [1, 2, 1, 1];
let result = keyduplicates_count(keys);
if len(result) == 0 { println!("invalid"); return; }
let mut i = 0;
while i < len(result) {
println!(at(result, i));
i += 1;
}
}
Expected output
2
2
2
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.0 | Download ZIP | 70a9b12345 | ba1b98c569f17b42b321e9394e54778be0934a1af73dbfcf329db9fe24c7c819 |