Blyx Nest Blyx language
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.

Source repository · Package JSON

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

VersionPackageSource commitSHA-256
0.1.1Download ZIP · Browse files32c291a082b1623d51ced970d42ffe236b4b34e22a4ff1901766087daa947ea2f3d3e7d2e5
0.1.0Download ZIP · Browse files6349f2378413be5a056bc39659e80fd3799a5ff977864375b1b63b237a52b67628254d4a6a