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.
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
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | d04c26d2b9 | 36f5161452aadfcab99411b7db9535cd3b9eb16f515b089ae09af1c8b631baa0 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | 67afad88723822ef6086013837c5d2ba48c4dbbd6ac14b870d12a3ad11edd128 |