Registry / Library

library · v0.1.0
SortRuns
Summarize equal-value runs in a nondecreasing integer stream.
Use SortRuns
use vendor::sortruns::sortruns;
Run the example
nest demo sortruns@0.1.0
blyxc native-run sortruns-demo/main.blyx
Example source and expected output
use vendor::sortruns::sortruns;
fn main() {
let values = [1, 1, 2, 3, 3, 3];
let result = sortruns_profile(values);
if len(result) == 0 { println!("invalid"); return; }
let mut i = 0;
while i < len(result) {
println!(at(result, i));
i += 1;
}
}
Expected output
3
3
3
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.0 | Download ZIP | 31ff43c96e | 3076414f737e300b9d3009e151cbc538af459b391475e22647f750532e85a933 |