Blyx Nest Blyx language
Registry / Framework
framework · v0.1.0

Magpie

Integrate an increasing sample grid and flag under-sampled sections.

Source repository · Package JSON

Use Magpie

use vendor::magpie::magpie;

Run the example

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

fn main() {
    let x = [0, 1, 4];
    let y = [2, 2, 2];
    let max_gap = 2.0;
    let result = magpie_integrate(x, y, max_gap);
    if len(result) == 0 { println!("invalid"); return; }
    let mut i = 0;
    while i < len(result) {
        println!(at(result, i));
        i += 1;
    }
}

Expected output

8
2
3
1

Published versions

VersionPackageSource commitSHA-256
0.1.0Download ZIPaa811e8dc8f12991b4c8493cd948ec856e2151c7508de3653dd5d833bf648f2f0f0844d959