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

IndentSteps

Audit fixed-step indentation measured on nonblank source lines.

Source repository · Package JSON

Use IndentSteps

use vendor::indentsteps::indentsteps;

Run the example

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

fn main() {
    let indent = [0, 4, 12, 8, 0];
    let step = 4.0;
    let result = indentsteps_audit(indent, step);
    if len(result) == 0 { println!("invalid"); return; }
    let mut i = 0;
    while i < len(result) {
        println!(at(result, i));
        i += 1;
    }
}

Expected output

1
2
12

Published versions

VersionPackageSource commitSHA-256
0.1.0Download ZIPb5e64159a8f718568b25306a584113fc19bd38912f2cabb1d7f54968aedd85dd532bb67fee