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

Lower Bound Pos

Locate the first element greater than or equal to a key in an ascending numeric vector. Returns the length when insertion belongs at the end.

Source repository · Package JSON

Use Lower Bound Pos

use vendor::lower_bound_pos::lower_bound_pos;

Run the example

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

fn main() {
    println!(lower_bound_pos([1,2,2,8],2.0));
}

Expected output

1

Published versions

VersionPackageSource commitSHA-256
0.1.1Download ZIP · Browse filesd04c26d2b936f5161452aadfcab99411b7db9535cd3b9eb16f515b089ae09af1c8b631baa0
0.1.0Download ZIP · Browse files6349f2378467afad88723822ef6086013837c5d2ba48c4dbbd6ac14b870d12a3ad11edd128