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

AuditGaps

Count forward gaps and nonadvancing IDs in an audit export.

Source repository · Package JSON

Use AuditGaps

use vendor::auditgaps::auditgaps;

Run the example

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

fn main() {
    let ids = [10, 12, 12, 11, 13];
    let result = auditgaps_sequence(ids);
    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
13

Published versions

VersionPackageSource commitSHA-256
0.1.0Download ZIPf1aee5fc6f503ada208a877c4d4b7507ca9d8af86bb193c37f7134597473f7319134ef6e24