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

Siskin

Inspect a cash-flow schedule for shortfalls that disappear by the closing date.

Source repository · Package JSON

Use Siskin

use vendor::siskin::siskin;

Run the example

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

fn main() {
    let opening = 20.0;
    let flows = [-15, -10, 30];
    let reserve = 10.0;
    let result = siskin_project(opening, flows, reserve);
    if len(result) == 0 { println!("invalid"); return; }
    let mut i = 0;
    while i < len(result) {
        println!(at(result, i));
        i += 1;
    }
}

Expected output

25
-5
0
2
15

Published versions

VersionPackageSource commitSHA-256
0.1.0Download ZIP7fc556c3bfd86cd38f73eb137cd50abe8a1c11d886666fa853f6489e07d3455c8b2897a890