Inventory.opBinary

Concatenates two inventories (or an inventory and an array of slots) and returns a new one.

Examples

auto inventory = new Inventory(4);
auto ni = inventory ~ [Slot(null), Slot(null)] ~ inventory;
assert(inventory.length == 4);
assert(ni.length == 10);

Meta