Adds slot(s) to the inventory (if there's enough space). Note that this function will only mutate the the inventory's slots' content without mutating its length.
the slot(s) that couldn't be added to the inventory
auto inventory = new Inventory(10); inventory += Slot(new Items.Apple(), 32); assert(inventory[0].item == Items.APPLE);
See Implementation
Adds slot(s) to the inventory (if there's enough space). Note that this function will only mutate the the inventory's slots' content without mutating its length.