Registry / Library

library · v0.1.1
Inventory Days
Find the first demand period that cannot be filled from current stock. Return the number of fully served periods.
Use Inventory Days
use vendor::inventory_days::inventory_days;
Run the example
nest demo inventory_days@0.1.1
blyxc native-run inventory_days-demo/main.blyx
Example source and expected output
use vendor::inventory_days::inventory_days;
fn main() {
println!(inventory_days(7.0,[3,4,1]));
}
Expected output
2
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | d0708c5e70 | dd181a128cf1bc31c05219ae1c71500d01d4228a14e157266eb7685c648ed917 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | bd6b02466728d957a9e0040e0e604b41ae6e18e82ba564a20fe70ccbfc47df83 |