Registry / Library

library · v0.1.1
Shelf Life Pick
Choose the earliest nonexpired lot with sufficient stock for an unsplit order. Ties preserve input order.
Use Shelf Life Pick
use vendor::shelf_life_pick::shelf_life_pick;
Run the example
nest demo shelf_life_pick@0.1.1
blyxc native-run shelf_life_pick-demo/main.blyx
Example source and expected output
use vendor::shelf_life_pick::shelf_life_pick;
fn main() {
println!(shelf_life_pick([8,7,9],[2,5,6],7.0,4.0));
}
Expected output
1
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | 39cde38175 | f79789ed1564af20a4f38aa45300fc9519c1e3978414587e7c24a5f78f4e6fde |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | 389cdbf68d343ff69f95982577dc25abf1a6314a8261bf011c16cdcedfe571c5 |