Registry / Library

library · v0.1.1
Unit Pack Waste
Compute spare slots in the final shipping case when a nonnegative order is packed into equal-size cases.
Use Unit Pack Waste
use vendor::unit_pack_waste::unit_pack_waste;
Run the example
nest demo unit_pack_waste@0.1.1
blyxc native-run unit_pack_waste-demo/main.blyx
Example source and expected output
use vendor::unit_pack_waste::unit_pack_waste;
fn main() {
println!(unit_pack_waste(13,6));
}
Expected output
5
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | 32c291a082 | b1623d51ced970d42ffe236b4b34e22a4ff1901766087daa947ea2f3d3e7d2e5 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | 13be5a056bc39659e80fd3799a5ff977864375b1b63b237a52b67628254d4a6a |