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

SortRuns

Summarize equal-value runs in a nondecreasing integer stream.

Source repository · Package JSON

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

VersionPackageSource commitSHA-256
0.1.0Download ZIP31ff43c96e3076414f737e300b9d3009e151cbc538af459b391475e22647f750532e85a933