Returns a sub-list representation of the table from index fromIndex (inclusive) to index toIndex (exclusive).