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

First Free Gap

Find the first start time that fits a duration past sorted, possibly overlapping reservations. Ignore empty reservations.

Source repository · Package JSON

Use First Free Gap

use vendor::first_free_gap::first_free_gap;

Run the example

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

fn main() {
    println!(first_free_gap([0,4],[3,8],0.0,2.0));
}

Expected output

8

Published versions

VersionPackageSource commitSHA-256
0.1.1Download ZIP · Browse files6de32f5b7493298734e742d014f1b463c60d760bfe7e6d863e4116fe7560b5e0d118fb53cf
0.1.0Download ZIP · Browse files6349f23784b792d39c706676e3c82964f65920cc614bb5a9c67846a45db566f7339f0ddd1a