linTo

infix fun <T : ForInventory> SingleInventorySlot<out T>.linTo(slot: SingleInventorySlot<out T>): InventorySlotRange<T>

This range contains all slots having an index between the indeces of the two given slots.